Commit f9c37a71 authored by Florian Bezdeka's avatar Florian Bezdeka Committed by Jan Kiszka
Browse files

testsuite/smokey: Fixing a registry leak of the posix_select test



According to POSIX message queues have kernel persistence, which means
they are not cleaned up until the next reboot.

The test has a mq_unlink() as "precondition", so it will clean up
failed test runs silently but /proc/xenomai/registry/usage will still
report a "leak" once the test has completed.
Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 4482d31c
......@@ -140,6 +140,8 @@ static int run_posix_select(struct smokey_test *t, int argc, char *const argv[])
ret = test_status;
out:
pthread_join(tcb, NULL);
mq_unlink("/select_test_mq");
return ret;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment