aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/scripts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Copy deep_userdata_example test script in the test frameworkHEADmasterBenoit Germain7 days1-0/+161
| | | | | * I need to keep deep_userdata_example hackishly built-in inside the unit tests executable, because using the external module cause a crash in Lua51 tests (module is unloaded before some deep objects are GCed...) * copy the test script in the proper location and invoke it as part of the tests
* Rework function bytecode dumping to be Lua5.5-readyBenoit Germain2025-07-242-10/+21
| | | | * prepare the luaL_Buffer in the destination state instead of the source state to prevent stack issues when everything happens in the same state
* Added Lua 5.5 supportBenoit Germain2025-07-041-1/+2
| | | | * some unit tests fail/segfault/freeze, but that could be because Lua 5.5 is still in beta yet
* Split coro tests in several scriptsBenoit Germain2025-07-0410-191/+247
|
* Fix more issues related to suspended coroutines and join/indexing operationsBenoit Germain2025-07-032-39/+100
| | | | | * indexing and joining a suspended lane closes the coroutine, causing the termination of the lane * properly close coroutine to-be-closed variables on interruption
* Clarified interactions between join() and coroutinesBenoit Germain2025-07-011-18/+27
|
* Preparation for lane:close() and correct to-be-closed variablesBenoit Germain2025-06-265-102/+220
| | | | | | | | * 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
* Move some tests to a separate scriptBenoit Germain2025-06-242-27/+28
|
* Added 2 tests in tasking_basicBenoit Germain2025-06-231-0/+27
|
* Change lane:join() return valuesBenoit Germain2025-06-053-9/+18
| | | | | | * when no error is raised in the lane, lane:join() now precedes the lane returned values with true * lane body is no longer forced to return something when used with join() * adjusted all relevant unit tests accordingly
* Unit test fixesBenoit Germain2025-04-243-6/+38
| | | | | | * fix cooperative_shutdown * add a test to tasking_cancelling * fix bad fixture function name give_me_back
* cancel_test() returns "soft"/"hard" instead of trueBenoit Germain2025-04-231-1/+0
|
* A unit test for linda wake_periodBenoit Germain2025-04-181-0/+41
|
* New feature: Linda periodical cancellation checksBenoit Germain2025-04-186-8/+8
| | | | | | | * lanes.linda() api change: takes all settings in a single table argument * new linda creation argument wake_period * new lanes.configure setting linda_wake_period * adjusted all unit tests (one TODO test fails on purpose)
* Linda batched mode reworkBenoit Germain2025-04-152-2/+2
| | | | | * linda.batched special value is removed * new function linda:receive_batched
* Fix some tests (kinda)Benoit Germain2025-04-152-67/+90
| | | | | * split tasking_cancelling in two * add a timer in basic and tasking_cancelling as a temporary workaround for a deadlock in mingw ucrt64 builds
* Raise a regular Lua error instead of throwing a C++ std::logic_error ↵Benoit Germain2025-03-171-2/+2
| | | | exception in Universe::UniverseGC
* Give a name to all lanes in the testsBenoit Germain2025-03-1411-16/+16
|
* Disable unit test "lanes.stack checker" in Release buildsBenoit Germain2025-03-131-1/+1
|
* Fix/disable some unit tests against LuaJIT until the failure reason is ↵Benoit Germain2025-03-102-3/+6
| | | | | | | | | discovered * cancel.lua fails when using lanes.coro * coro/basics.lua fails because an error message is different * coro/error_handling fails for an unknown reason * a lanes.finally test crashes inside lua_close
* Some fixes for unit tests with LuaJITBenoit Germain2025-03-101-1/+5
| | | | | | | * vcproj settings * always load "jit" module so that lanes does not detect it in running under PUC-Lua * add fixture support so that test "cooperative_shutdown.lua" works * fix test "lanes.configure() allocator setting not failing like it should
* Append all unit tests to depotBenoit Germain2024-12-1317-0/+1390