]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netbsd-tests: Remove some pointless sleeps from message queue tests
authorMark Johnston <markj@FreeBSD.org>
Fri, 10 Mar 2023 22:06:46 +0000 (17:06 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 20 Mar 2023 12:52:07 +0000 (08:52 -0400)
commitb09eed11cf20101e9249aecf8ca83e2be6df5947
treef2b12212f8ee301bcb978187bb8bb240dc750040
parent06fc9fe027f68aaeb36fe52fbeb7ab0ac6e7012f
netbsd-tests: Remove some pointless sleeps from message queue tests

- In the msgctl tests, there is no point in sleeping after a fork().
  Just block immediately in wait().
- In non-blocking send/recv tests, just wait for the child to exit once
  it's reached a message limit.  If a bug prevents the child from
  exiting promptly, the test will time out.

MFC after: 1 week

(cherry picked from commit 478de7f8e25849ce0b3a37b4baaf9c69e0b34072)
contrib/netbsd-tests/lib/libc/sys/t_msgctl.c
contrib/netbsd-tests/lib/libc/sys/t_msgrcv.c
contrib/netbsd-tests/lib/libc/sys/t_msgsnd.c