mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 21:54:50 +00:00
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:
parent
ab27e232b1
commit
498b3b494b
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue