diff options
Diffstat (limited to 'lib/semaphore/pthread')
-rw-r--r-- | lib/semaphore/pthread/Makefile | 15 | ||||
-rw-r--r-- | lib/semaphore/pthread/t_sem_pth.c | 17 |
2 files changed, 32 insertions, 0 deletions
diff --git a/lib/semaphore/pthread/Makefile b/lib/semaphore/pthread/Makefile new file mode 100644 index 000000000000..dd2b09b10022 --- /dev/null +++ b/lib/semaphore/pthread/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.3 2014/06/10 04:28:39 he Exp $ + +.include <bsd.own.mk> + +TESTSDIR= ${TESTSBASE}/lib/semaphore/pthread + +TESTS_C= t_sem_pth + +CPPFLAGS+= -I${.CURDIR}/.. + +LDADD+= -lrump -lrumpuser -lrump -lpthread + +WARNS= 4 + +.include <bsd.test.mk> diff --git a/lib/semaphore/pthread/t_sem_pth.c b/lib/semaphore/pthread/t_sem_pth.c new file mode 100644 index 000000000000..b32d954d2bb0 --- /dev/null +++ b/lib/semaphore/pthread/t_sem_pth.c @@ -0,0 +1,17 @@ +#define LIBNAME "pthread" +#include "sem.c" + +ATF_TP_ADD_TCS(tp) +{ + + ATF_TP_ADD_TC(tp, postwait); + ATF_TP_ADD_TC(tp, initvalue); + ATF_TP_ADD_TC(tp, destroy); + ATF_TP_ADD_TC(tp, busydestroy); + ATF_TP_ADD_TC(tp, blockwait); + ATF_TP_ADD_TC(tp, blocktimedwait); + ATF_TP_ADD_TC(tp, named); + ATF_TP_ADD_TC(tp, unlink); + + return atf_no_error(); +} |