summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/mtree/BSD.tests.dist2
-rw-r--r--tests/sys/Makefile1
-rw-r--r--tests/sys/posixshm/Makefile10
-rw-r--r--tests/sys/posixshm/posixshm.c (renamed from tools/regression/posixshm/posixshm.c)2
-rw-r--r--tests/sys/posixshm/test.c (renamed from tools/regression/posixshm/test.c)0
-rw-r--r--tests/sys/posixshm/test.h (renamed from tools/regression/posixshm/test.h)0
-rw-r--r--tools/regression/posixshm/Makefile9
-rw-r--r--tools/regression/posixshm/posixshm.t5
8 files changed, 14 insertions, 15 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist
index 47678de..0c1d671 100644
--- a/etc/mtree/BSD.tests.dist
+++ b/etc/mtree/BSD.tests.dist
@@ -364,6 +364,8 @@
..
opencrypto
..
+ posixshm
+ ..
pjdfstest
chflags
..
diff --git a/tests/sys/Makefile b/tests/sys/Makefile
index 55d0a51..eaf9f9f 100644
--- a/tests/sys/Makefile
+++ b/tests/sys/Makefile
@@ -8,6 +8,7 @@ TESTS_SUBDIRS+= kern
TESTS_SUBDIRS+= kqueue
TESTS_SUBDIRS+= netinet
TESTS_SUBDIRS+= opencrypto
+TESTS_SUBDIRS+= posixshm
TESTS_SUBDIRS+= sockets
TESTS_SUBDIRS+= vfs
diff --git a/tests/sys/posixshm/Makefile b/tests/sys/posixshm/Makefile
new file mode 100644
index 0000000..cb27345
--- /dev/null
+++ b/tests/sys/posixshm/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+TESTSDIR= ${TESTSBASE}/sys/posixshm
+
+TAP_TESTS_C= posixshm_test
+SRCS.posixshm_test= posixshm.c test.c
+
+WARNS?= 6
+
+.include <bsd.test.mk>
diff --git a/tools/regression/posixshm/posixshm.c b/tests/sys/posixshm/posixshm.c
index 6f4c306..e21f45a 100644
--- a/tools/regression/posixshm/posixshm.c
+++ b/tests/sys/posixshm/posixshm.c
@@ -619,7 +619,7 @@ test_object_resize(void)
TEST(test_object_resize, "object resize");
int
-main(int argc, char *argv[])
+main(void)
{
run_tests();
diff --git a/tools/regression/posixshm/test.c b/tests/sys/posixshm/test.c
index 8583a0d..8583a0d 100644
--- a/tools/regression/posixshm/test.c
+++ b/tests/sys/posixshm/test.c
diff --git a/tools/regression/posixshm/test.h b/tests/sys/posixshm/test.h
index 505679b..505679b 100644
--- a/tools/regression/posixshm/test.h
+++ b/tests/sys/posixshm/test.h
diff --git a/tools/regression/posixshm/Makefile b/tools/regression/posixshm/Makefile
deleted file mode 100644
index 5ef70c9..0000000
--- a/tools/regression/posixshm/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-PROG= posixshm
-SRCS= posixshm.c test.c
-MAN=
-
-WARNS?= 3
-
-.include <bsd.prog.mk>
diff --git a/tools/regression/posixshm/posixshm.t b/tools/regression/posixshm/posixshm.t
deleted file mode 100644
index a2159ac..0000000
--- a/tools/regression/posixshm/posixshm.t
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-
-./posixshm
OpenPOWER on IntegriCloud