HomeFreeBSD

sem_clockwait_np test: fix usage of ATF API

Description

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

(cherry picked from commit 35e4527e88d3843cccf2f15a32b1fa041a01d693)

Details

Provenance
vangyzenAuthored on Oct 1 2021, 11:25 AM
Parents
rG190a6b5aeaa0: sem test: move sem_clockwait_np tests into individual cases
Branches
Unknown
Tags
Unknown