summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-09-23 19:54:59 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-09-23 19:54:59 +0000
commit93900fe76d44a436af2e5743bc1924157e9ba5bb (patch)
treefe3b4e8fda36a191bf846c3343c2b03b2db7ac74 /tests
parent114484b7ec6d5a8e2fe3beb5351b4d974af61875 (diff)
downloadsrc-test2-93900fe76d44a436af2e5743bc1924157e9ba5bb.tar.gz
src-test2-93900fe76d44a436af2e5743bc1924157e9ba5bb.zip
tests: move the memfd tests over to sys/posixshm
memfd_create is implemented on top of posixshm, so this is a logically correct place for them to be. Moreover, this reduces the number of places to look to run tests when working in this part of the tree. Discussed with: kib (to some extent, a while ago)
Notes
Notes: svn path=/head/; revision=366093
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/Makefile1
-rw-r--r--tests/sys/posixshm/Makefile1
-rw-r--r--tests/sys/posixshm/memfd_test.c (renamed from tests/sys/kern/memfd_test.c)0
3 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile
index ed33bc52ecd1..ebd7e053dd20 100644
--- a/tests/sys/kern/Makefile
+++ b/tests/sys/kern/Makefile
@@ -11,7 +11,6 @@ TESTSDIR= ${TESTSBASE}/sys/kern
ATF_TESTS_C+= kern_copyin
ATF_TESTS_C+= kern_descrip_test
ATF_TESTS_C+= kill_zombie
-ATF_TESTS_C+= memfd_test
ATF_TESTS_C+= ptrace_test
TEST_METADATA.ptrace_test+= timeout="15"
ATF_TESTS_C+= reaper
diff --git a/tests/sys/posixshm/Makefile b/tests/sys/posixshm/Makefile
index 6e9e345d5b16..cd76e5a7db1f 100644
--- a/tests/sys/posixshm/Makefile
+++ b/tests/sys/posixshm/Makefile
@@ -4,6 +4,7 @@ PACKAGE= tests
TESTSDIR= ${TESTSBASE}/sys/posixshm
+ATF_TESTS_C+= memfd_test
ATF_TESTS_C+= posixshm_test
.include <bsd.test.mk>
diff --git a/tests/sys/kern/memfd_test.c b/tests/sys/posixshm/memfd_test.c
index 3784c4f0c840..3784c4f0c840 100644
--- a/tests/sys/kern/memfd_test.c
+++ b/tests/sys/posixshm/memfd_test.c