diff options
author | Steve Bennett <steveb@workware.net.au> | 2022-08-29 10:44:56 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-08-29 10:44:56 +1000 |
commit | ac75e179d80dd158cfb52d28c6ecdf054f8c7c2b (patch) | |
tree | f16563175f2d0626aaba35d50c5fbf72c9cba6de | |
parent | 25e8086a9e702cad24186826cdbc59bfc5a107cb (diff) | |
download | jimtcl-ac75e179d80dd158cfb52d28c6ecdf054f8c7c2b.zip jimtcl-ac75e179d80dd158cfb52d28c6ecdf054f8c7c2b.tar.gz jimtcl-ac75e179d80dd158cfb52d28c6ecdf054f8c7c2b.tar.bz2 |
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 <steveb@workware.net.au>
-rw-r--r-- | tests/lock.test | 2 |
1 files changed, 1 insertions, 1 deletions
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 |