aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2026-02-26 11:02:55 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2026-02-26 11:02:55 +0100
commit4f97720e4c3944ccf9b9742028dc697c2dd94c5a (patch)
tree259ec6c30971f3ca0c7e0f38898ab7f7aa548af9 /tests
parent6b8c83b3bc44b0a1bc186f58de0fea6dfc214c4b (diff)
downloadlanes-4f97720e4c3944ccf9b9742028dc697c2dd94c5a.tar.gz
lanes-4f97720e4c3944ccf9b9742028dc697c2dd94c5a.tar.bz2
lanes-4f97720e4c3944ccf9b9742028dc697c2dd94c5a.zip
change cancel_test() to raise cancel_error on hard-cancels by default
Diffstat (limited to 'tests')
-rw-r--r--tests/atexit.lua2
-rw-r--r--tests/cancel.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/atexit.lua b/tests/atexit.lua
index ba10d3b..744b705 100644
--- a/tests/atexit.lua
+++ b/tests/atexit.lua
@@ -11,7 +11,7 @@ end
11local g = function() 11local g = function()
12 local cancelled 12 local cancelled
13 repeat 13 repeat
14 cancelled = cancel_test() 14 cancelled = cancel_test(true)
15 until cancelled 15 until cancelled
16 print "User cancellation detected!" 16 print "User cancellation detected!"
17end 17end
diff --git a/tests/cancel.lua b/tests/cancel.lua
index 66957c3..c5ff0e6 100644
--- a/tests/cancel.lua
+++ b/tests/cancel.lua
@@ -130,7 +130,7 @@ local laneBody = function(mode_, payload_)
130 else 130 else
131 error "no mode: raise an error" 131 error "no mode: raise an error"
132 end 132 end
133 until cancel_test() -- soft cancel self test 133 until cancel_test(true) -- soft cancel self test
134 print " lane shutting down after breaking out of loop" 134 print " lane shutting down after breaking out of loop"
135end 135end
136 136