summaryrefslogtreecommitdiff
path: root/testes/all.lua
Commit message (Collapse)AuthorAgeFilesLines
* Avoid excessive name pollution in test filesRoberto Ierusalimschy2022-12-281-0/+1
| | | | | Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use.
* New test module 'tracegc'Roberto Ierusalimschy2021-03-011-12/+2
| | | | New module easies the inclusion of GC tracing in individual test files.
* Back to a stackless implementationRoberto Ierusalimschy2020-10-121-2/+2
| | | | | | | | | | | | | A "with stack" implementation gains too little in performance to be worth all the noise from C-stack overflows. This commit is almost a sketch, to test performance. There are several pending stuff: - review control of C-stack overflow and error messages; - what to do with setcstacklimit; - review comments; - review unroll of Lua calls.
* Default for warnings changed to "off"Roberto Ierusalimschy2019-08-201-2/+3
| | | | | Warnings are mostly a tool to help developers (e.g., by showing hidden error messages); regular users usually don't need to see them.
* Supressed errors in '__close' generate warningsRoberto Ierusalimschy2019-08-161-2/+2
|
* Added control messages to warningsRoberto Ierusalimschy2019-08-151-0/+4
| | | | | | | Added the concept of control messages to the warning system, plus the implementation of the controls "@on"/"@off" to turn warnings on/off. Moreover, the warning system in the test library adds some other controls to ease the test of warnings.
* 'math.randomseed()' returns the seeds it usedRoberto Ierusalimschy2019-07-171-3/+8
| | | | | A call to 'math.randomseed()' returns the two components of the seed it set, so that they can be used to set that same seed again.
* Revamp around 'L->nCcalls' countRoberto Ierusalimschy2019-06-121-0/+14
| | | | | The field 'L->nCcalls' now counts downwards, so that the C-stack limits do not depend on the stack size.
* Function 'warn' is varargRoberto Ierusalimschy2019-06-041-12/+10
| | | | | | | Instead of a 'tocont' flag, the function 'warn' in Lua now receives all message pieces as multiple arguments in a single call. Besides being simpler to use, this implementation ensures that Lua code cannot create unfinished warnings.
* Changes in the warning systemRoberto Ierusalimschy2019-03-141-5/+5
| | | | | | | | - The warning functions get an extra parameter that tells whether message is to be continued (instead of using end-of-lines as a signal). - The user data for the warning function is a regular value, instead of a writable slot inside the Lua state.
* No more LUA_ERRGCMM errorsRoberto Ierusalimschy2019-01-011-5/+6
| | | | | Errors in finalizers (__gc metamethods) are never propagated. Instead, they generate a warning.
* Added a warning system to LuaRoberto Ierusalimschy2018-12-281-5/+8
| | | | | The warning system is just a way for Lua to emit warnings, messages to the programmer that do not interfere with the running program.
* Changes in the control of C-stack overflowRoberto Ierusalimschy2018-12-271-0/+1
| | | | | | | | | | * unification of the 'nny' and 'nCcalls' counters; * external C functions ('lua_CFunction') count more "slots" in the C stack (to allow for their possible use of buffers) * added a new test script specific for C-stack overflows. (Most of those tests were already present, but concentrating them in a single script easies the task of checking whether 'LUAI_MAXCCALLS' is adequate in a system.)
* Removed extra information from RCS keyword strings in testsRoberto Ierusalimschy2018-10-221-0/+0
| | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all test files; only the file name are kept.
* Added directory to test file names in '$Id:'Roberto Ierusalimschy2018-07-251-1/+1
| | | | | | | From the point of view of 'git', all names are relative to the root directory of the project. So, file names in '$Id:' also should be relative to that directory: the proper name for test file 'all.lua' is 'testes/all.lua'.
* Fixed bug in generational collection of userdataRoberto Ierusalimschy2018-07-131-2/+2
| | | | | | | | | During generational collection, a userdatum must become gray and go to a gray list after being traversed (like tables), so that 'correctgraylist' can handle it to its next stage. This commit also added minimum tests for the generational collector, including one that would detect this bug.
* Added manual and tests for version 5.4-w2Roberto Ierusalimschy2018-07-091-0/+294