aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/scripts (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-11-19Link lanes_core.so with -fvisibility=hiddenBenoit Germain1-1/+1
2025-10-30Test full userdata keys with verbose_errorsBenoit Germain2-3/+12
2025-10-30Stronger test for verbose_errorsBenoit Germain1-5/+9
2025-10-27Two less global variablesBenoit Germain1-2/+3
2025-10-27verbose_errors improvementBenoit Germain8-14/+62
* Use std::format instead of sprintf for verbose errors when decoding table keys * Add a unit test for the different table key types
2025-10-21Fix STACK_GROW under ClangBenoit Germain1-1/+1
Repeat change e0236dc2c4fffab98b6ce4f7126c1b260b87416d of C-implementation
2025-09-30Lift restriction on functions and userdata as table keysBenoit Germain6-50/+149
As demonstrated by the unit tests, there is no problem with using a function or a userdata as a table key, as long as they are transferable
2025-09-29Lift restriction on tables as table keysBenoit Germain7-14/+54
As demonstrated by the unit tests, there is no problem with using a table as a table key
2025-09-29Many small doc tweaksBenoit Germain1-39/+42
2025-09-23Fix embedded tests when PATH is insufficientBenoit Germain1-14/+35
* read package.path and use the list of paths to try to load lanes_core.dll
2025-09-22Fix a small doc typoBenoit Germain1-2/+2
2025-09-20Improve table and userdata conversionsBenoit Germain12-132/+656
* add convert_fallback and convert_max_attempts to global settings * if no __lanesconvert is available, use convert_fallback (can be useful for externally provided full userdata with fixed metatables) * only try conversion on non-deep and non-clonable userdata * conversion can be applied recursively, up to convert_max_attempts times * plus all the relevant unit tests of course
2025-08-21Improved func_is_string unit testBenoit Germain1-19/+27
2025-07-31Copy deep_userdata_example test script in the test frameworkBenoit Germain6-3/+180
* 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
2025-07-31Adjust deep_userdata_example test script to the latest linda API changesBenoit Germain1-1/+1
2025-07-31RAII + setjmp = UBBenoit Germain2-40/+13
2025-07-28I don't even know why I ever included luajit.h. removed it.Benoit Germain1-1/+0
2025-07-27Tiny makefile tweak for Lua 5.5Benoit Germain1-1/+1
2025-07-25Split lanes.sleep unit tests and some linda unit tests tooBenoit Germain2-76/+91
2025-07-25Fix crashes in MSVC release builds related to KeeperOperationInProgressBenoit Germain3-14/+24
* scope the KeeperOperationInProgress object on linda calls * but since it's not enough, just comment it, it is only debug stuff anyway
2025-07-24Rework function bytecode dumping to be Lua5.5-readyBenoit Germain7-45/+53
* prepare the luaL_Buffer in the destination state instead of the source state to prevent stack issues when everything happens in the same state
2025-07-24Use LANES_DEBUG instead of MSVC-specific _DEBUG to activate debug codeBenoit Germain2-44/+45
2025-07-24Use LANES_DEBUG instead of MSVC-specific _DEBUG to activate debug codeBenoit Germain4-22/+32
2025-07-22workaround a possible Lua 5.5 bug when dumping functions (but it doesn't ↵Benoit Germain1-0/+5
solve everything)
2025-07-22New helper to push function bytecode (to facilitate Lua 5.5 support)Benoit Germain3-38/+53
2025-07-20cmake for c++20 in master branchsonoro12341-2/+3
2025-07-04Minor doc fixesBenoit Germain1-2/+2
2025-07-04Added Lua 5.5 supportBenoit Germain10-32/+97
* some unit tests fail/segfault/freeze, but that could be because Lua 5.5 is still in beta yet
2025-07-04Changed lua wrapper prefixes from luaG_ to luaW_ (w as in wrapper!)Benoit Germain25-390/+390
2025-07-04Added targets for Lua 5.5 in VS projects and SolutionBenoit Germain4-0/+737
2025-07-04Split coro tests in several scriptsBenoit Germain13-203/+288
2025-07-03Fix more issues related to suspended coroutines and join/indexing operationsBenoit Germain5-162/+269
* indexing and joining a suspended lane closes the coroutine, causing the termination of the lane * properly close coroutine to-be-closed variables on interruption
2025-07-01Clarified interactions between join() and coroutinesBenoit Germain2-46/+75
2025-06-26Preparation for lane:close() and correct to-be-closed variablesBenoit Germain9-123/+299
* 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
2025-06-26Minor documentation fixBenoit Germain1-2/+2
2025-06-25Minor code refacto (Lane::waitForCompletion)Benoit Germain2-27/+15
2025-06-24Move some tests to a separate scriptBenoit Germain5-27/+33
2025-06-24Better protection of selfdestruct chain at universe shutdownBenoit Germain1-15/+18
2025-06-23Added 2 tests in tasking_basicBenoit Germain1-0/+27
2025-06-05Change lane:join() return valuesBenoit Germain17-67/+85
* 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
2025-05-22Minor code cosmetic changesBenoit Germain3-64/+89
2025-05-21Code factorization in KeyUD::pop()Benoit Germain1-9/+19
2025-05-07Thread priority reworkBenoit Germain11-171/+347
* 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
2025-05-06Renamed a few unit testsBenoit Germain2-10/+10
2025-05-06Fix priorities for Mingw buildsBenoit Germain1-2/+2
2025-04-29Move ProtectedAllocator::Protected_lua_Alloc in universe.cppBenoit Germain2-8/+13
2025-04-29Updated comments on unit test lanes.configure.allocator/protectedBenoit Germain2-2/+2
2025-04-29Retarget vcxproj to latest Windows SDKBenoit Germain1-1/+1
2025-04-29Split unittest lanes.configure.allocatorBenoit Germain1-31/+47
2025-04-28Remove a useless mutex guard on lane setf-destructBenoit Germain3-2/+3