From fc230dcf447eb45f054aa940c35313f825b926df Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 4 Dec 2015 09:32:03 +0000 Subject: 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 --- tests/sys/kern/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/sys/kern') 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 -- cgit v1.1