]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sem_clockwait_np test: fix usage of ATF API
authorEric van Gyzen <vangyzen@FreeBSD.org>
Fri, 1 Oct 2021 11:25:48 +0000 (06:25 -0500)
committerEric van Gyzen <vangyzen@FreeBSD.org>
Fri, 1 Oct 2021 11:39:34 +0000 (06:39 -0500)
commit35e4527e88d3843cccf2f15a32b1fa041a01d693
tree4e85f56790e4ff7fff592b5d7578b71fb266cada
parent2334abfd01ba92dfa6a7ab6f2c4cc45fa64ffd3c
sem_clockwait_np test: fix usage of ATF API

ATF_REQUIRE_ERRNO requires the given errno iff the given expression is
true.  These test cases used it incorrectly, potentially allowing
sem_clockwait_np to succeed when it was expected to fail.  Use separate
ATF calls to require failure and the expected errno.

MFC after: 1 week
Sponsored by: Dell EMC Isilon
contrib/netbsd-tests/lib/librt/t_sem.c