diff options
Diffstat (limited to 'modules/lock-tests')
-rw-r--r-- | modules/lock-tests | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/lock-tests b/modules/lock-tests new file mode 100644 index 0000000000..5680771765 --- /dev/null +++ b/modules/lock-tests @@ -0,0 +1,20 @@ +Files: +tests/test-lock.c + +Depends-on: + +configure.ac: +dnl Checks for special libraries for the tests/test-lock test. +dnl On some systems, sched_yield is in librt, rather than in libpthread. +LIBSCHED= +if test $gl_threads_api = posix; then + AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt]) +fi +AC_SUBST([LIBSCHED]) + +Makefile.am: +TESTS += test-lock +noinst_PROGRAMS += test-lock +test_lock_SOURCES = test-lock.c +test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD) + |