From ac75e179d80dd158cfb52d28c6ecdf054f8c7c2b Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Mon, 29 Aug 2022 10:44:56 +1000 Subject: tests: lock.test: child lock test should be more reliable Some systems need a little extra time for the child process to start and acquire the lock. Signed-off-by: Steve Bennett --- tests/lock.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lock.test') diff --git a/tests/lock.test b/tests/lock.test index e7b0b2d..fc8a65b 100644 --- a/tests/lock.test +++ b/tests/lock.test @@ -35,7 +35,7 @@ test lock-1.4 {release lock again} { test lock-1.5 {grab lock from sub-process} { # Run a child process that grabs the lock for 0.5 seconds set pid [exec [info nameofexecutable] -e {set fh [open locktest.file r+]; $fh lock; sleep 0.5} >/dev/null &] - sleep 0.1 + sleep 0.25 # Try to grab the lock - should fail set stat [$fh lock] sleep 0.5 -- cgit v1.1