From: Paolo Carlini Date: Wed, 16 Feb 2005 11:12:43 +0000 (+0000) Subject: re PR libstdc++/19829 (cris-elf testsuite failure: 21_strings/basic_string/find/char... X-Git-Tag: releases/gcc-3.4.4~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a668ec84d21319dd8e9a3dba96392efb2cae51;p=thirdparty%2Fgcc.git re PR libstdc++/19829 (cris-elf testsuite failure: 21_strings/basic_string/find/char/3.cc execution test) 2005-02-16 Paolo Carlini 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8a94f30013db..0fab8fb8b18e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2005-02-16 Paolo Carlini + + 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 PR libstdc++/19946 diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc index 24b73333744a..b8643e08c3f4 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc @@ -1,6 +1,6 @@ // 2003-05-04 Paolo Carlini -// 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 ); diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc index 6964e013f30a..dd27c4380634 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc @@ -1,6 +1,6 @@ // 2003-05-04 Paolo Carlini -// 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 );