git: df68a09ea2ec - main - tests: sys/capsicum/functional requires mqueuefs

From: Alan Somers <asomers_at_FreeBSD.org>
Date: Sat, 31 Jan 2026 15:47:17 UTC
The branch main has been updated by asomers:

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

commit df68a09ea2ec18ee975fb937d46a18250d4663c8
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2026-01-27 00:04:58 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2026-01-31 15:46:35 +0000

    tests: sys/capsicum/functional requires mqueuefs
    
    Skip this test if mqueuefs isn't loaded.  Unfortunately, that will skip
    the entire googletest test program, including test cases that don't
    require mqueuefs.  But the test's own skipping logic doesn't work, and
    we don't yet have a googletest-compatible require_kmods() function.
    
    MFC after:      2 weeks
    Sponsored by:   ConnectWise
    Reviewed by:    emaste, ngie
    Differential Revision: https://reviews.freebsd.org/D54902
---
 tests/sys/capsicum/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/sys/capsicum/Makefile b/tests/sys/capsicum/Makefile
index 38c1f8285910..a8f72d399af9 100644
--- a/tests/sys/capsicum/Makefile
+++ b/tests/sys/capsicum/Makefile
@@ -15,6 +15,7 @@ GTESTS_WRAPPER_SH.capsicum-test=	functional
 # 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"
+TEST_METADATA.functional+=	required_kmods="mqueuefs"
 
 SRCS.capsicum-test+=	\
 	capsicum-test-main.cc \