summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-04 09:32:03 +0000
committerngie <ngie@FreeBSD.org>2015-12-04 09:32:03 +0000
commitfc230dcf447eb45f054aa940c35313f825b926df (patch)
tree2f0756687aab81532c99e28b7e08dabc32b8ced5 /tests
parent634df7f08c142512043084b495106ce19badc5a8 (diff)
downloadFreeBSD-src-fc230dcf447eb45f054aa940c35313f825b926df.zip
FreeBSD-src-fc230dcf447eb45f054aa940c35313f825b926df.tar.gz
MFC r290913,r291181:
r290913: Port contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSD - Add missing headers - Ensure mqueuefs is loaded - Make sure the mqueuefs path is absolute and relative to / - Cast the result of mq_open returning -1 to (mqd_t) to mute a compiler warning Sponsored by: EMC / Isilon Storage Division r291181: Integrate contrib/netbsd-tests/kernel/t_mqueue into the FreeBSD test suite as tests/sys/kern/mqueue_test
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile
index 5328b99..03b4a5c 100644
--- a/tests/sys/kern/Makefile
+++ b/tests/sys/kern/Makefile
@@ -15,6 +15,11 @@ LDADD.ptrace_test+= -lpthread
LDADD.unix_seqpacket_test+= -lpthread
NETBSD_ATF_TESTS_C+= lockf_test
+NETBSD_ATF_TESTS_C+= mqueue_test
+
+CFLAGS.mqueue_test+= -I${SRCTOP}/tests
+DPADD.mqueue_test+= ${LIBRT}
+LDADD.mqueue_test+= -lrt
WARNS?= 5
OpenPOWER on IntegriCloud