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
(cherry picked from commit 498b3b494b)
This commit is contained in:
parent
239c9c6de1
commit
a8a1633e34
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue