git: 41ece3c036bd - main - capsicum tests: Serialize functional tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Sep 2024 14:29:00 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=41ece3c036bda3d4da321989ee59d0555c10d603
commit 41ece3c036bda3d4da321989ee59d0555c10d603
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-09-03 14:39:02 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-09-04 14:28:28 +0000
capsicum tests: Serialize functional tests
The test suite runs the same tests twice, as different users, and these
can trample over each other when run in parallel, causing spurious test
failures.
MFC after: 1 week
---
tests/sys/capsicum/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/sys/capsicum/Makefile b/tests/sys/capsicum/Makefile
index 6d37cfa08056..fd8dcb29d65c 100644
--- a/tests/sys/capsicum/Makefile
+++ b/tests/sys/capsicum/Makefile
@@ -13,6 +13,10 @@ CFLAGS+= -I${SRCTOP}/tests
GTESTS+= capsicum-test
GTESTS_WRAPPER_SH.capsicum-test= functional
+# This test script runs the same test suite twice, once as root and once as an
+# unprivileged user. Serialize them since some tests access global namespaces,
+# e.g., mqueuefs, and can trample on each other.
+TEST_METADATA.functional+= is_exclusive="true"
SRCS.capsicum-test+= \
capsicum-test-main.cc \