Commit fdff8bd0 authored by Bruno Haible's avatar Bruno Haible
Browse files

lock tests: Skip test when no multithreading is enabled.

* tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
parent 8e771821
2019-12-15 Bruno Haible <bruno@clisp.org>
lock tests: Skip test when no multithreading is enabled.
* tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
2019-12-14 Bruno Haible <bruno@clisp.org>
 
locale, duplocale, localename: Fix last patch.
......@@ -21,6 +21,8 @@
#include <config.h>
#if USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS || USE_WINDOWS_THREADS
#include "glthread/lock.h"
#include <errno.h>
......@@ -151,3 +153,18 @@ main ()
sleep (1);
}
}
#else
/* No multithreading available. */
#include <stdio.h>
int
main ()
{
fputs ("Skipping test: multithreading not enabled\n", stderr);
return 77;
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment