git: e1ccf64b884a - main - netbsd-tests: Serialize message queue tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Mar 2023 22:07:44 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=e1ccf64b884a1a47c48a2fb7d71e7eb18347c6d6
commit e1ccf64b884a1a47c48a2fb7d71e7eb18347c6d6
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-10 22:07:06 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-10 22:07:06 +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
---
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