summaryrefslogtreecommitdiff
path: root/modules/pthread-mutex-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-07-15 02:41:12 +0200
committerBruno Haible <bruno@clisp.org>2019-07-15 02:41:12 +0200
commit243f6dbf66228dfe89dad5202c128e46049add9c (patch)
treeed88c70ee0106cb73fed6b907784c62deaf7abf3 /modules/pthread-mutex-tests
parentda2524b310dbcf773d0a9546096b05bec590c1e7 (diff)
downloadgnulib-243f6dbf66228dfe89dad5202c128e46049add9c.tar.gz
pthread-mutex: Add tests.
* tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and tests/test-mtx.c. * modules/pthread-mutex-tests: New file.
Diffstat (limited to 'modules/pthread-mutex-tests')
-rw-r--r--modules/pthread-mutex-tests14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/pthread-mutex-tests b/modules/pthread-mutex-tests
new file mode 100644
index 0000000000..050d506b0e
--- /dev/null
+++ b/modules/pthread-mutex-tests
@@ -0,0 +1,14 @@
+Files:
+tests/test-pthread-mutex.c
+tests/macros.h
+
+Depends-on:
+pthread-thread
+sched_yield
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-pthread-mutex
+check_PROGRAMS += test-pthread-mutex
+test_pthread_mutex_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@