git: 46adaf3642cf - main - tests: Serialize kern_descrip_test

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sat, 03 May 2025 00:04:51 UTC
The branch main has been updated by markj:

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

commit 46adaf3642cff045b9ac87bd2e8b32124bd66ba2
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-05-02 23:59:55 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-05-03 00:04:32 +0000

    tests: Serialize kern_descrip_test
    
    It can trigger failures in unrelated tests when it modifies the maxfiles
    limit.
    
    MFC after:      1 week
---
 tests/sys/kern/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile
index 0dc7fcbdd8d7..9480ea78266f 100644
--- a/tests/sys/kern/Makefile
+++ b/tests/sys/kern/Makefile
@@ -15,6 +15,8 @@ ATF_TESTS_C+=	kcov
 .endif
 ATF_TESTS_C+=	kern_copyin
 ATF_TESTS_C+=	kern_descrip_test
+# One test modifies the maxfiles limit, which can cause spurious test failures.
+TEST_METADATA.kern_descrip_test+= is_exclusive="true"
 ATF_TESTS_C+=	fdgrowtable_test
 ATF_TESTS_C+=	kill_zombie
 .if ${MK_OPENSSL} != "no"