OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update comment to reflect test.
[pf3gnuchains/gcc-fork.git]
/
libstdc++-v3
/
testsuite
/
thread
/
pthread7-rope.cc
diff --git
a/libstdc++-v3/testsuite/thread/pthread7-rope.cc
b/libstdc++-v3/testsuite/thread/pthread7-rope.cc
index
5b4d099
..
2f40134
100644
(file)
--- a/
libstdc++-v3/testsuite/thread/pthread7-rope.cc
+++ b/
libstdc++-v3/testsuite/thread/pthread7-rope.cc
@@
-19,8
+19,8
@@
// USA.
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
// USA.
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
-// { dg-options "-
D_GLIBCXX_ASSERT -
pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
-// { dg-options "-
D_GLIBCXX_ASSERT -
pthreads" { target *-*-solaris* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
+// { dg-options "-pthreads" { target *-*-solaris* } }
#include <ext/rope>
#include <cstring>
#include <ext/rope>
#include <cstring>
@@
-34,6
+34,7
@@
const int max_thread_count = 4;
const int max_loop_count = 10000;
const int max_thread_count = 4;
const int max_loop_count = 10000;
+__gnu_cxx::crope foo2;
__gnu_cxx::crope foo4;
void* thread_main(void *)
__gnu_cxx::crope foo4;
void* thread_main(void *)
@@
-81,7
+82,6
@@
main()
const char* data2;
{
const char* data2;
{
- __gnu_cxx::crope foo2;
foo2 += "bar2";
foo2 += "baz2";
foo2 += "bongle2";
foo2 += "bar2";
foo2 += "baz2";
foo2 += "bongle2";
@@
-107,8
+107,8
@@
main()
pthread_join (tid[i], NULL);
}
pthread_join (tid[i], NULL);
}
- // 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;
}