Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Copy deep_userdata_example test script in the test frameworkHEADmaster | Benoit Germain | 8 days | 5 | -2/+179 |
| | | | | | * 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 | ||||
* | Split lanes.sleep unit tests and some linda unit tests too | Benoit Germain | 14 days | 2 | -76/+91 |
| | |||||
* | Rework function bytecode dumping to be Lua5.5-ready | Benoit Germain | 2025-07-24 | 4 | -10/+25 |
| | | | | * prepare the luaL_Buffer in the destination state instead of the source state to prevent stack issues when everything happens in the same state | ||||
* | Use LANES_DEBUG instead of MSVC-specific _DEBUG to activate debug code | Benoit Germain | 2025-07-24 | 1 | -22/+23 |
| | |||||
* | Use LANES_DEBUG instead of MSVC-specific _DEBUG to activate debug code | Benoit Germain | 2025-07-24 | 1 | -2/+2 |
| | |||||
* | Added Lua 5.5 support | Benoit Germain | 2025-07-04 | 3 | -3/+4 |
| | | | | * some unit tests fail/segfault/freeze, but that could be because Lua 5.5 is still in beta yet | ||||
* | Changed lua wrapper prefixes from luaG_ to luaW_ (w as in wrapper!) | Benoit Germain | 2025-07-04 | 3 | -25/+25 |
| | |||||
* | Added targets for Lua 5.5 in VS projects and Solution | Benoit Germain | 2025-07-04 | 1 | -0/+182 |
| | |||||
* | Split coro tests in several scripts | Benoit Germain | 2025-07-04 | 13 | -203/+288 |
| | |||||
* | Fix more issues related to suspended coroutines and join/indexing operations | Benoit Germain | 2025-07-03 | 2 | -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 coroutines | Benoit Germain | 2025-07-01 | 1 | -18/+27 |
| | |||||
* | Preparation for lane:close() and correct to-be-closed variables | Benoit Germain | 2025-06-26 | 8 | -106/+237 |
| | | | | | | | | * 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 script | Benoit Germain | 2025-06-24 | 5 | -27/+33 |
| | |||||
* | Added 2 tests in tasking_basic | Benoit Germain | 2025-06-23 | 1 | -0/+27 |
| | |||||
* | Change lane:join() return values | Benoit Germain | 2025-06-05 | 3 | -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 | ||||
* | Thread priority rework | Benoit Germain | 2025-05-07 | 1 | -62/+155 |
| | | | | | | | * thread priorities can now be set using the native range of values, if desired. * thread API errors cause a Lua error instead of aborting the program. * new function lanes.thread_priority_range(), to query the valid range of priorities. * unit tests for all of the above | ||||
* | Renamed a few unit tests | Benoit Germain | 2025-05-06 | 2 | -10/+10 |
| | |||||
* | Updated comments on unit test lanes.configure.allocator/protected | Benoit Germain | 2025-04-29 | 1 | -1/+1 |
| | |||||
* | Retarget vcxproj to latest Windows SDK | Benoit Germain | 2025-04-29 | 1 | -1/+1 |
| | |||||
* | Split unittest lanes.configure.allocator | Benoit Germain | 2025-04-29 | 1 | -31/+47 |
| | |||||
* | Remove a useless mutex guard on lane setf-destruct | Benoit Germain | 2025-04-28 | 1 | -0/+1 |
| | |||||
* | Unit test fixes | Benoit Germain | 2025-04-24 | 4 | -10/+42 |
| | | | | | | * fix cooperative_shutdown * add a test to tasking_cancelling * fix bad fixture function name give_me_back | ||||
* | cancel_test() returns "soft"/"hard" instead of true | Benoit Germain | 2025-04-23 | 1 | -1/+0 |
| | |||||
* | Make gcc more happy | Benoit Germain | 2025-04-20 | 3 | -3/+5 |
| | |||||
* | A unit test for linda wake_period | Benoit Germain | 2025-04-18 | 4 | -12/+50 |
| | |||||
* | New feature: Linda periodical cancellation checks | Benoit Germain | 2025-04-18 | 9 | -301/+437 |
| | | | | | | | * 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 rework | Benoit Germain | 2025-04-15 | 3 | -3/+2 |
| | | | | | * linda.batched special value is removed * new function linda:receive_batched | ||||
* | A bit of code factorization | Benoit Germain | 2025-04-15 | 1 | -0/+1 |
| | |||||
* | Fix some tests (kinda) | Benoit Germain | 2025-04-15 | 5 | -67/+96 |
| | | | | | * split tasking_cancelling in two * add a timer in basic and tasking_cancelling as a temporary workaround for a deadlock in mingw ucrt64 builds | ||||
* | Remove whitspaces from test names | Benoit Germain | 2025-04-14 | 3 | -6/+6 |
| | |||||
* | Fix crash with multi keepers (invalid memory access on close) | Benoit Germain | 2025-04-07 | 1 | -0/+7 |
| | |||||
* | UnitTest vcproj builds exe directly in _LuaVersions so that it finds the ↵ | Benoit Germain | 2025-04-04 | 1 | -20/+20 |
| | | | | necessary DLLs | ||||
* | Separate nb_user_keeper unit tests | Benoit Germain | 2025-04-04 | 1 | -34/+35 |
| | |||||
* | More vcproj fixes for some targets | Benoit Germain | 2025-03-21 | 1 | -24/+24 |
| | |||||
* | Adjusting MSVC files to ease unit testing | Benoit Germain | 2025-03-21 | 4 | -240/+88 |
| | | | | | * Everything assumes there is a _LuaVersions folder containing all supported Lua versions (binaries, libs and headers) alongside the Lanes.sln location * After that the solutions to build the Lua binaries themselves will appear too for reference (mainly because their output folders will be configured accordingly) | ||||
* | A few vcproj tweaks | Benoit Germain | 2025-03-20 | 1 | -20/+28 |
| | |||||
* | Fix test "allocator = <bad C function>" not failing against LuaJIT like it ↵ | Benoit Germain | 2025-03-17 | 1 | -169/+178 |
| | | | | should | ||||
* | Raise a regular Lua error instead of throwing a C++ std::logic_error ↵ | Benoit Germain | 2025-03-17 | 5 | -49/+66 |
| | | | | exception in Universe::UniverseGC | ||||
* | Give a name to all lanes in the tests | Benoit Germain | 2025-03-14 | 14 | -18/+19 |
| | |||||
* | lanes/core.[so|dll] → lanes_core.[so|dll] | Benoit Germain | 2025-03-14 | 3 | -4/+4 |
| | |||||
* | More makefile tweaks | Benoit Germain | 2025-03-14 | 1 | -7/+7 |
| | |||||
* | More work on Makefiles | Benoit Germain | 2025-03-13 | 3 | -10/+12 |
| | | | | | | | | | | | * renamed makefiles: - Shared.mk → Shared.makefile - src/Makefile → src/Lanes.makefile - unit_tests/Makefile → unit_tests/UnitTests.makefile - deep_userdata_example/Makefile → deep_userdata_example/DUE.makefile * Add a makefile for deep_userdata_example * added a target 'unit_tests' to build them (not running them yet) * plus some minor internal improvements | ||||
* | Cleanup in MSVC projects | Benoit Germain | 2025-03-13 | 2 | -71/+85 |
| | |||||
* | Disable unit test "lanes.stack checker" in Release builds | Benoit Germain | 2025-03-13 | 2 | -7/+22 |
| | |||||
* | Makefile tweaks | Benoit Germain | 2025-03-12 | 1 | -1/+1 |
| | |||||
* | Fix unit tests makefile | Benoit Germain | 2025-03-12 | 1 | -1/+1 |
| | | | | * UnitTest.exe is not a shared library | ||||
* | Make gcc happy | Benoit Germain | 2025-03-12 | 2 | -1/+2 |
| | |||||
* | Unit tests for lanes.sleep | Benoit Germain | 2025-03-12 | 1 | -0/+65 |
| | |||||
* | Add a VisualStudio solution to build and debug Lanes | Benoit Germain | 2025-03-11 | 6 | -38/+641 |
| | | | | | | * configured to build Lanes, the example module deep_userdata_example, and the unit tests * relies on Lua 5.1 → 5.4, LuaJIT and MoonJIT to be built and located in a fixed directory * manual_register legacy test now uses deep_userdata_example module instead of lfs | ||||
* | Sample module deep test renamed deep_userdata_example | Benoit Germain | 2025-03-11 | 2 | -11/+11 |
| |