fix libstdc++/46951

Submitted by Jonathan Wakely on Dec. 15, 2010, 2:07 a.m.

Details

Message ID AANLkTinV9i9bpt3oRdENXmuqSMjtz+jKhCyasFae8dwC@mail.gmail.com
State New
Headers show

Commit Message

Jonathan Wakely Dec. 15, 2010, 2:07 a.m.
2010-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/46951
        * testsuite/30_threads/future/members/45133.cc: Fix dg-options.
        * testsuite/30_threads/shared_future/members/45133.cc: Likewise.

Tested x86_64-linux, checked in to trunk.

I had configured with --enable-libstdcxx-time=rt which made it
unnecessary to use -pthread, hiding these failures from me when I
tested. I'll reconfigure with the right options.

Patch hide | download patch | download mbox

Index: testsuite/30_threads/future/members/45133.cc
===================================================================
--- testsuite/30_threads/future/members/45133.cc	(revision 167823)
+++ testsuite/30_threads/future/members/45133.cc	(working copy)
@@ -1,4 +1,7 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
+// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
 // { dg-require-cstdint "" }
 // { dg-require-gthreads "" }
 // { dg-require-atomic-builtins "" }
Index: testsuite/30_threads/shared_future/members/45133.cc
===================================================================
--- testsuite/30_threads/shared_future/members/45133.cc	(revision 167823)
+++ testsuite/30_threads/shared_future/members/45133.cc	(working copy)
@@ -1,4 +1,7 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
+// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
+// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
 // { dg-require-cstdint "" }
 // { dg-require-gthreads "" }
 // { dg-require-atomic-builtins "" }