]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/19829 (cris-elf testsuite failure: 21_strings/basic_string/find/char...
authorPaolo Carlini <pcarlini@suse.de>
Wed, 16 Feb 2005 11:12:43 +0000 (11:12 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 16 Feb 2005 11:12:43 +0000 (11:12 +0000)
2005-02-16  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/19829
* testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
at line #66 to not access str_lit01 beyond its end.
* testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.

From-SVN: r95104

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc

index 8a94f30013db1fc74b3fb2db53aea3ca63c69324..0fab8fb8b18e32f1b59781a718e8588a4ff204a9 100644 (file)
@@ -1,3 +1,10 @@
+2005-02-16  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/19829
+       * testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
+       at line #66 to not access str_lit01 beyond its end.
+       * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.
+
 2005-02-15  Jakub Jelinek  <jakub@redhat.com>
 
        PR libstdc++/19946
index 24b73333744a80d72bd5048b2daf132e6e32853c..b8643e08c3f44f34ce17c8ba07c117aaebe773c9 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -63,7 +63,7 @@ bool test03(void)
   // size_type find_first_not_of(const char* s, size_type pos, size_type n) const;
   csz01 = str01.find_first_not_of(str_lit01, 0, 0);
   VERIFY( csz01 == 0 );
-  csz01 = str01.find_first_not_of(str_lit01, 0, 10);
+  csz01 = str01.find_first_not_of(str_lit01, 0, 8);
   VERIFY( csz01 == 8 );
   csz01 = str01.find_first_not_of(str_lit01, 10, 0);
   VERIFY( csz01 == 10 );
index 6964e013f30a349ad7da57030abd46754d8ecac9..dd27c4380634e46efe290c1d40d5cf3535f0a4dc 100644 (file)
@@ -1,6 +1,6 @@
 // 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -63,7 +63,7 @@ bool test03(void)
   // size_type find_first_not_of(const char* s, size_type pos, size_type n) const;
   csz01 = str01.find_first_not_of(str_lit01, 0, 0);
   VERIFY( csz01 == 0 );
-  csz01 = str01.find_first_not_of(str_lit01, 0, 10);
+  csz01 = str01.find_first_not_of(str_lit01, 0, 8);
   VERIFY( csz01 == 8 );
   csz01 = str01.find_first_not_of(str_lit01, 10, 0);
   VERIFY( csz01 == 10 );