summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorivmai <ivmai>2011-05-23 23:19:18 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:59 +0200
commitd6aa5c95d0c95a990f4b951c0d7dfb7c95a72f48 (patch)
tree84bda81dcf4197940b000939271fc854275f6291 /tests
parentd53b6dfbbb335dba60ef960e7e3abee10dcd9ed9 (diff)
2011-05-23 Ivan Maidanski <ivmai@mail.ru>
* tests/threadkey_test.c (SKIP_THREADKEY_TEST): Skip the test if defined; explicitly define for some targets.
Diffstat (limited to 'tests')
-rw-r--r--tests/threadkey_test.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/threadkey_test.c b/tests/threadkey_test.c
index 1ea761d..bf3f51e 100644
--- a/tests/threadkey_test.c
+++ b/tests/threadkey_test.c
@@ -7,6 +7,23 @@
#include "gc.h"
+#if (!defined(GC_PTHREADS) || defined(GC_SOLARIS_THREADS) \
+ || defined(__native_client__)) && !defined(SKIP_THREADKEY_TEST)
+ /* FIXME: Skip this test on Solaris for now. The test may fail on */
+ /* other targets as well. Currently, tested only on Linux, Cygwin */
+ /* and Darwin. */
+# define SKIP_THREADKEY_TEST
+#endif
+
+#ifdef SKIP_THREADKEY_TEST
+
+int main (void)
+{
+ return 0;
+}
+
+#else
+
#include <pthread.h>
pthread_key_t key;
@@ -68,3 +85,5 @@ int main (void)
}
return 0;
}
+
+#endif