libstdc++: Disable failing tests [PR 97936]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 Nov 2020 23:22:01 +0000 (23:22 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 24 Nov 2020 23:41:28 +0000 (23:41 +0000)
These tests are unstable and causing failures due to timeouts. Disable
them until the cause can be found, so that testing doesn't have to wait
for them to timeout.

libstdc++-v3/ChangeLog:

PR libstdc++/97936
PR libstdc++/97944
* testsuite/29_atomics/atomic_integral/wait_notify.cc: Disable.
Do not require pthreads, but add -pthread when appropriate.
* testsuite/30_threads/jthread/95989.cc: Likewise.
* testsuite/30_threads/latch/3.cc: Likewise.
* testsuite/30_threads/semaphore/try_acquire_until.cc: Likewise.

libstdc++-v3/testsuite/29_atomics/atomic_integral/wait_notify.cc
libstdc++-v3/testsuite/30_threads/jthread/95989.cc
libstdc++-v3/testsuite/30_threads/latch/3.cc
libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_until.cc

index abf2bfdbee96cc4bb4d7ab4b5ff46520008acbaf..762583cf8c76eaaecfea3308e127e7581b14e3ab 100644 (file)
@@ -1,8 +1,9 @@
-// { dg-options "-std=gnu++2a -pthread" }
+// { dg-options "-std=gnu++2a" }
 // { dg-do run { target c++2a } }
-// { dg-require-effective-target pthread }
 // { dg-require-gthreads "" }
 // { dg-add-options libatomic }
+// { dg-additional-options "-pthread" { target pthread } }
+// { dg-skip-if "broken" { *-*-* } }
 
 // Copyright (C) 2020 Free Software Foundation, Inc.
 //
index c7a9430eee90cf7add47d834fe4400bea7bc10c9..a179eab381985254213239934cc91e98fa8e24b8 100644 (file)
@@ -20,6 +20,7 @@
 // { dg-require-gthreads {} }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-additional-options "-static" { target static } }
+// { dg-skip-if "broken" { *-*-* } }
 
 #include <thread>
 
index 5d08000f4302abd13ee06ebb19a3113aff08bf65..6304135a877c352e961b027bb2266bbb7bfa711b 100644 (file)
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -pthread" }
+// { dg-options "-std=gnu++2a" }
 // { dg-do run { target c++2a } }
-// { dg-require-effective-target pthread }
 // { dg-require-gthreads "" }
-//
+// { dg-additional-options "-pthread" { target pthread } }
+// { dg-skip-if "broken" { *-*-* } }
+
 #include <latch>
 #include <atomic>
 #include <thread>
index af7ab7bac39527abe11358aa858dfee5945b7e49..5e1141425f7246d8cb8c0a97e9ea812f42b00859 100644 (file)
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -pthread" }
+// { dg-options "-std=gnu++2a" }
 // { dg-do run { target c++2a } }
-// { dg-require-effective-target pthread }
 // { dg-require-gthreads "" }
+// { dg-additional-options "-pthread" { target pthread } }
+// { dg-skip-if "broken" { *-*-* } }
 
 #include <semaphore>
 #include <chrono>