http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54407



--- Comment #13 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-10-14 
21:22:48 UTC ---

I would rather we use...



Index: libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc

===================================================================

--- libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc    (revision

192440)

+++ libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc    (working

copy)

@@ -1,4 +1,5 @@

-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris*

*-*-cygwin *-*-darwin* powerpc-ibm-aix* } }

+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris*

*-*-cygwin *-*-darwin1[1-9]* powerpc-ibm-aix* } }

+// { dg-xfail-if "broken pthreads before darwin11" { *-*-darwin9*

*-*-darwin10* } { "*" } { "" } }

 // { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd*

*-*-linux* powerpc-ibm-aix* } }

 // { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }

 // { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }



The usage of dg-skip-if allows the test to be both compiled and executed on

darwin1 in concert with dg-do-run. If it is working as documented, the

dg-skip-if above to only compile on darwin9/10 but not try to execute the test

case.

Reply via email to