diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-20 15:49:28 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-20 15:49:28 +0200 |
commit | 9a0781e52fd0f9eac8ac75c18d7f58936fb6c981 (patch) | |
tree | b0766998fe71a89e4f968dac1e669684d7cb7d88 /tests | |
parent | 5e5f08558010890206e1d2d11045870c35eb23cf (diff) | |
download | lanes-9a0781e52fd0f9eac8ac75c18d7f58936fb6c981.tar.gz lanes-9a0781e52fd0f9eac8ac75c18d7f58936fb6c981.tar.bz2 lanes-9a0781e52fd0f9eac8ac75c18d7f58936fb6c981.zip |
linda:limit uses nil instead of -1 to unblock
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cancel.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/cancel.lua b/tests/cancel.lua index 5bd569f..e39ad98 100644 --- a/tests/cancel.lua +++ b/tests/cancel.lua | |||
@@ -35,11 +35,11 @@ if not next(which_tests) or which_tests.genlock then | |||
35 | assert( atomic( 1) == lanes.cancel_error) | 35 | assert( atomic( 1) == lanes.cancel_error) |
36 | 36 | ||
37 | -- reset the linda so that the other tests work | 37 | -- reset the linda so that the other tests work |
38 | linda:cancel( "none") | 38 | linda:cancel("none") |
39 | linda:limit( "lock", -1) | 39 | linda:limit("lock") |
40 | linda:set( "lock") | 40 | linda:set("lock") |
41 | linda:limit( "atomic", -1) | 41 | linda:limit("atomic") |
42 | linda:set( "atomic") | 42 | linda:set("atomic") |
43 | 43 | ||
44 | print "test OK" | 44 | print "test OK" |
45 | end | 45 | end |