From 271b13d611201973d7a5365a2fba8753b1105089 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 25 Aug 2005 12:36:58 +0000 Subject: Tests for gnulib module 'lock'. --- modules/lock-tests | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/lock-tests (limited to 'modules/lock-tests') 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) + -- cgit v1.2.1