diff options
author | Bruno Haible <bruno@clisp.org> | 2005-08-25 12:36:58 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2005-08-25 12:36:58 +0000 |
commit | 271b13d611201973d7a5365a2fba8753b1105089 (patch) | |
tree | 9fb3b01989d942757810e348d5dff82969b5cba1 /modules/lock-tests | |
parent | 5455f49f156e8675ae0703fb0725fbfbe09e773c (diff) | |
download | gnulib-271b13d611201973d7a5365a2fba8753b1105089.tar.gz |
Tests for gnulib module 'lock'.
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) + |