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

Details

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