summaryrefslogtreecommitdiff
path: root/tests/test-asyncsafe-spin2.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-08-16 18:41:57 +0200
committerBruno Haible <bruno@clisp.org>2020-08-16 18:41:57 +0200
commitdcc8b493adecff06096bb3516aac26d29012cf1a (patch)
tree97328fea383a45e4f5b9eebca07010800a8110f0 /tests/test-asyncsafe-spin2.c
parent5a459e1cf0deb13b90313da377fe6cb2d8ccff73 (diff)
downloadgnulib-dcc8b493adecff06096bb3516aac26d29012cf1a.tar.gz
asyncsafe-spin tests: Update.
* tests/test-asyncsafe-spin2.c: Update to match the change in lib/asyncsafe-spin.c from 2020-08-11.
Diffstat (limited to 'tests/test-asyncsafe-spin2.c')
-rw-r--r--tests/test-asyncsafe-spin2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-asyncsafe-spin2.c b/tests/test-asyncsafe-spin2.c
index cb0364f7ec..38d9324dbb 100644
--- a/tests/test-asyncsafe-spin2.c
+++ b/tests/test-asyncsafe-spin2.c
@@ -36,7 +36,8 @@
#define THREAD_COUNT 10
/* Number of operations performed in each thread. */
-#if !(defined _WIN32 && ! defined __CYGWIN__) && HAVE_PTHREAD_H && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && !defined __ibmxl__
+#if !(defined _WIN32 && ! defined __CYGWIN__) && HAVE_PTHREAD_H && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || __clang_major__ >= 3) && !defined __ibmxl__
+
/* The GCC built-ins are known to work fine. */
# define REPEAT_COUNT 5000
#else