diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-06-26 09:18:54 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-06-26 09:18:54 +0200 |
| commit | d7d756e30680bcff036118b47ac45b740e020ea2 (patch) | |
| tree | 3e2a26409154760d66092e6e04a9fcb4ad4ed02a /unit_tests/scripts/coro/error_handling.lua | |
| parent | 4f5fa626c0279f5aefac477a29702c43a6754c5a (diff) | |
| download | lanes-d7d756e30680bcff036118b47ac45b740e020ea2.tar.gz lanes-d7d756e30680bcff036118b47ac45b740e020ea2.tar.bz2 lanes-d7d756e30680bcff036118b47ac45b740e020ea2.zip | |
Preparation for lane:close() and correct to-be-closed variables
* lane:join() can no longer be used to read yielded values
* same with lane indexing
* stub for lane:close(), similar to coroutine.close() (not implemented yet)
* preparing tests for to-be-closed variables in yielded coroutine lanes
* yielded lanes unlock and terminate properly at Lanes shutdown
Diffstat (limited to 'unit_tests/scripts/coro/error_handling.lua')
| -rw-r--r-- | unit_tests/scripts/coro/error_handling.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unit_tests/scripts/coro/error_handling.lua b/unit_tests/scripts/coro/error_handling.lua index ba6cff6..1cfb8c8 100644 --- a/unit_tests/scripts/coro/error_handling.lua +++ b/unit_tests/scripts/coro/error_handling.lua | |||
| @@ -38,15 +38,15 @@ local force_error_test = function(error_trace_level_) | |||
| 38 | utils.dump_error_stack(error_trace_level_, c) | 38 | utils.dump_error_stack(error_trace_level_, c) |
| 39 | end | 39 | end |
| 40 | 40 | ||
| 41 | if false then | 41 | if true then |
| 42 | force_error_test("minimal") | 42 | force_error_test("minimal") |
| 43 | end | 43 | end |
| 44 | 44 | ||
| 45 | if false then | 45 | if true then |
| 46 | force_error_test("basic") | 46 | force_error_test("basic") |
| 47 | end | 47 | end |
| 48 | 48 | ||
| 49 | if false then | 49 | if true then |
| 50 | force_error_test("extended") | 50 | force_error_test("extended") |
| 51 | end | 51 | end |
| 52 | 52 | ||
