libstdc++: Fix some AIX test failures
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Apr 2023 21:14:05 +0000 (22:14 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 12 Apr 2023 22:25:17 +0000 (23:25 +0100)
commit25264f6b3a75f505c1ca3bc7e48ce173560c1b2c
tree610639f1425f86ac0ed0f6d69895a57938268005
parentd339e9802f758e051b0a1ef6db732ff846cbf4e3
libstdc++: Fix some AIX test failures

AIX <sys/thread.h> defines struct tstate with non-reserved names, so
adjust the 17_intro/names.cc test. It also defines struct user, which
conflicts with namespace user in some tests.

Replacing the global operator new doesn't work on AIX the same way as it
does for ELF, so skip some tests that depend on replacing it.

Add missing DG directives to synchronized_value test so it doesn't run
for the single-threaded AIX multilib.

libstdc++-v3/ChangeLog:

* testsuite/17_intro/names.cc [_AIX]: Do not define policy.
* testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
namespace to avoid clashing with libc struct.
* testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
Likewise.
* testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
* testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
* testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
* testsuite/23_containers/unordered_set/96088.cc: Likewise.
* testsuite/experimental/synchronized_value.cc: Require gthreads
and add missing option for pthreads targets.
libstdc++-v3/testsuite/17_intro/names.cc
libstdc++-v3/testsuite/19_diagnostics/error_code/cons/lwg3629.cc
libstdc++-v3/testsuite/19_diagnostics/error_condition/cons/lwg3629.cc
libstdc++-v3/testsuite/23_containers/unordered_map/96088.cc
libstdc++-v3/testsuite/23_containers/unordered_multimap/96088.cc
libstdc++-v3/testsuite/23_containers/unordered_multiset/96088.cc
libstdc++-v3/testsuite/23_containers/unordered_set/96088.cc
libstdc++-v3/testsuite/experimental/synchronized_value.cc