git: 06fc9fe027f6 - stable/13 - netbsd-tests: Serialize message queue tests

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 20 Mar 2023 13:33:40 UTC
The branch stable/13 has been updated by markj:

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

commit 06fc9fe027f68aaeb36fe52fbeb7ab0ac6e7012f
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-10 22:07:06 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-20 12:52:07 +0000

    netbsd-tests: Serialize message queue tests
    
    They can fail when run in parallel since they all share a global queue
    key.
    
    MFC after:      1 week
    
    (cherry picked from commit e1ccf64b884a1a47c48a2fb7d71e7eb18347c6d6)
---
 lib/libc/tests/sys/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/libc/tests/sys/Makefile b/lib/libc/tests/sys/Makefile
index e4a1bf30a8f9..188196911666 100644
--- a/lib/libc/tests/sys/Makefile
+++ b/lib/libc/tests/sys/Makefile
@@ -74,6 +74,13 @@ NETBSD_ATF_TESTS_C+=		write_test
 LIBADD.getpid_test+=		pthread
 LIBADD.timer_create_test+=	rt
 
+# Message queue IPC tests need to be executed serially since they variously
+# use global keys and exhaust global IPC limits.
+TEST_METADATA.msgctl_test+=	is_exclusive="true"
+TEST_METADATA.msgget_test+=	is_exclusive="true"
+TEST_METADATA.msgsnd_test+=	is_exclusive="true"
+TEST_METADATA.msgrcv_test+=	is_exclusive="true"
+
 .include "../Makefile.netbsd-tests"
 
 SRCS.mlock_test+=		mlock_helper.c