diff options
author | Steve Bennett <steveb@workware.net.au> | 2016-08-28 15:25:16 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-08-29 23:56:33 +1000 |
commit | 614395fe8f5fb62189551e4eb82a804b9c9ae4ac (patch) | |
tree | 557f1c6c6dbbad74f2e1ef53ffdd29115ef8e09f /tests/lock.test | |
parent | 803fdb21caa2bbc5c8305db513c809972cc4a9f0 (diff) | |
download | jimtcl-614395fe8f5fb62189551e4eb82a804b9c9ae4ac.zip jimtcl-614395fe8f5fb62189551e4eb82a804b9c9ae4ac.tar.gz jimtcl-614395fe8f5fb62189551e4eb82a804b9c9ae4ac.tar.bz2 |
lock.test: Improve check for aio.lock support
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/lock.test')
-rw-r--r-- | tests/lock.test | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lock.test b/tests/lock.test index 92778d1..3672d6a 100644 --- a/tests/lock.test +++ b/tests/lock.test @@ -11,9 +11,8 @@ source [file dirname [info script]]/testing.tcl needs constraint jim -# Really we want to check if locking is supported, but there -# is no easy way to do that, so use the existence of os.wait as a proxy -needs cmd os.wait +testConstraint aio.lock [expr {"lock" in [stdin -commands]}] +needs constraint aio.lock set fh [open locktest.file w] |