Commit 63041e68 by Paolo Carlini Committed by Paolo Carlini

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
parent 0e327147
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> 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
PR libstdc++/14245 PR libstdc++/14245
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
const int max_thread_count = 4; const int max_thread_count = 4;
const int max_loop_count = 10000; const int max_loop_count = 10000;
__gnu_cxx::crope foo2;
__gnu_cxx::crope foo4; __gnu_cxx::crope foo4;
void* thread_main(void *) void* thread_main(void *)
...@@ -81,7 +82,6 @@ main() ...@@ -81,7 +82,6 @@ main()
const char* data2; const char* data2;
{ {
__gnu_cxx::crope foo2;
foo2 += "bar2"; foo2 += "bar2";
foo2 += "baz2"; foo2 += "baz2";
foo2 += "bongle2"; foo2 += "bongle2";
...@@ -108,7 +108,8 @@ main() ...@@ -108,7 +108,8 @@ main()
} }
// Nothing says the data will be trashed at this point... // 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; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment