summaryrefslogtreecommitdiff
path: root/modules/lock-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-08-25 12:36:58 +0000
committerBruno Haible <bruno@clisp.org>2005-08-25 12:36:58 +0000
commit271b13d611201973d7a5365a2fba8753b1105089 (patch)
tree9fb3b01989d942757810e348d5dff82969b5cba1 /modules/lock-tests
parent5455f49f156e8675ae0703fb0725fbfbe09e773c (diff)
downloadgnulib-271b13d611201973d7a5365a2fba8753b1105089.tar.gz
Tests for gnulib module 'lock'.
Diffstat (limited to 'modules/lock-tests')
-rw-r--r--modules/lock-tests20
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)
+