]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Do not require effective target pthread for some tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 13:49:36 +0000 (14:49 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 23:10:46 +0000 (00:10 +0100)
commit0ff31212eb6dd0f7b64f9c51be9850eee2b8f83b
tree3fb03d8eb6b59099997912d90c76f9e269679fe0
parent8ccae1639fa66ac9566e337bb2fd0ee6366f3f7e
libstdc++: Do not require effective target pthread for some tests

We can remove { dg-require-effective-target pthread } and allow these
tests non-pthread targets and conditionally adding -pthread only for
pthread targets.

Also remove the { dg-options "-std=gnu++20" } that is no longer needed.

libstdc++-v3/ChangeLog:

* testsuite/29_atomics/atomic_ref/wait_notify.cc: Do not
restrict to pthreads targets.
* testsuite/30_threads/jthread/3.cc: Likewise.
* testsuite/30_threads/semaphore/100806.cc: Likewise.
* testsuite/30_threads/semaphore/try_acquire.cc: Likewise.
* testsuite/30_threads/semaphore/try_acquire_for.cc: Likewise.
* testsuite/30_threads/semaphore/try_acquire_posix.cc: Likewise.
libstdc++-v3/testsuite/29_atomics/atomic_ref/wait_notify.cc
libstdc++-v3/testsuite/30_threads/jthread/3.cc
libstdc++-v3/testsuite/30_threads/semaphore/100806.cc
libstdc++-v3/testsuite/30_threads/semaphore/try_acquire.cc
libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_for.cc
libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_posix.cc
This page took 0.058464 seconds and 5 git commands to generate.