File: pthread-mutex-tests

package info (click to toggle)
gnulib 20260109-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 165,988 kB
  • sloc: ansic: 391,363; sh: 30,873; python: 8,397; cpp: 2,985; yacc: 1,846; perl: 920; makefile: 631; lisp: 328; sed: 11; java: 5
file content (24 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Files:
tests/test-pthread-mutex.c
tests/test-pthread-mutex-type.c
tests/atomic-int-posix.h
tests/macros.h
m4/semaphore.m4

Depends-on:
pthread-thread
sched_yield
random

configure.ac:
AC_CHECK_HEADERS_ONCE([semaphore.h])
AC_CHECK_DECLS_ONCE([alarm])
AC_REQUIRE([gl_SEMAPHORE])

Makefile.am:
TESTS += test-pthread-mutex test-pthread-mutex-type
check_PROGRAMS += test-pthread-mutex test-pthread-mutex-type
test_pthread_mutex_LDADD = $(LDADD) @LIBPMULTITHREAD@ @SCHED_YIELD_LIB@ @LIB_SEMAPHORE@
# If we were to link test-pthread-mutex-type only with @LIBPTHREAD@ instead of
# @LIBPMULTITHREAD@, this test would fail on FreeBSD and NetBSD.
test_pthread_mutex_type_LDADD = $(LDADD) @LIBPMULTITHREAD@