lockf tests: Fix a race

The test launches lockf(1) in the background and races with it, so it
shouldn't be using atf_check to check that lockf won the race.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2024-07-14 12:13:13 -04:00
parent ab27e232b1
commit 498b3b494b

View file

@ -47,7 +47,9 @@ basic_body()
lpid=$!
# Make sure that the lock exists...
atf_check test -e "testlock"
while ! test -e "testlock"; do
sleep 0.1
done
# Attempt both verbose and silent re-lock
atf_check -s exit:${EX_TEMPFAIL} -e not-empty \