diff options
author | Paolo Carlini <pcarlini@suse.de> | 2004-03-29 09:54:15 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2004-03-29 09:54:15 +0000 |
commit | 63041e68a4c1b6043872652c07223117ebfb07f7 (patch) | |
tree | 0586c31ea095fdae52e9645bd2bdf0d6f3eb9bd2 | |
parent | 0e32714724d8e7311a46d0ff77003d775da2d788 (diff) | |
download | gcc-63041e68a4c1b6043872652c07223117ebfb07f7.zip gcc-63041e68a4c1b6043872652c07223117ebfb07f7.tar.gz gcc-63041e68a4c1b6043872652c07223117ebfb07f7.tar.bz2 |
pthread7-rope.cc: Fix...
2004-03-29 Paolo Carlini <pcarlini@suse.de>
* testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
on allocator behavior, the memory pointed by data2 may well be not
trashed.
From-SVN: r80051
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread7-rope.cc | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a3e9af6..cabb954 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2004-03-29 Paolo Carlini <pcarlini@suse.de> + + * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending + on allocator behavior, the memory pointed by data2 may well be not + trashed. + 2004-03-28 Chavdar Botev <cbotev@yahoo.com> PR libstdc++/14245 diff --git a/libstdc++-v3/testsuite/thread/pthread7-rope.cc b/libstdc++-v3/testsuite/thread/pthread7-rope.cc index 916a455..f2183de 100644 --- a/libstdc++-v3/testsuite/thread/pthread7-rope.cc +++ b/libstdc++-v3/testsuite/thread/pthread7-rope.cc @@ -34,6 +34,7 @@ const int max_thread_count = 4; const int max_loop_count = 10000; +__gnu_cxx::crope foo2; __gnu_cxx::crope foo4; void* thread_main(void *) @@ -81,7 +82,6 @@ main() const char* data2; { - __gnu_cxx::crope foo2; foo2 += "bar2"; foo2 += "baz2"; foo2 += "bongle2"; @@ -108,7 +108,8 @@ main() } // Nothing says the data will be trashed at this point... - VERIFY( std::strcmp (data2, "bar2baz2bongle2") ); + VERIFY( !std::strcmp (data, "barbazbongle") ); + VERIFY( !std::strcmp (data2, "bar2baz2bongle2") ); return 0; } |