Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2024 11:39:56 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6f636541a3b1 - stable/14 - capsicum tests: Serialize functional tests
Message-ID:  <202409201139.48KBdusf004348@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=6f636541a3b1fe14a6f85f457c12cf8a7159a121

commit 6f636541a3b1fe14a6f85f457c12cf8a7159a121
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-09-03 14:39:02 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-09-20 11:39:16 +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
    
    (cherry picked from commit 41ece3c036bda3d4da321989ee59d0555c10d603)
---
 tests/sys/capsicum/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/sys/capsicum/Makefile b/tests/sys/capsicum/Makefile
index 542c6720521c..2dc499a14b42 100644
--- a/tests/sys/capsicum/Makefile
+++ b/tests/sys/capsicum/Makefile
@@ -14,6 +14,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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409201139.48KBdusf004348>