lua-aot-5.4
lua-aot-5.4 copied to clipboard
Add a test suite
trafficstars
We should be able to leverage the existing Lua test suite.
- [x] Test without compilation (to test the changes to the interpreter)
- [x] Test with compilation (to test the code generator)
- [ ] Automate the tests using Github Actions
For some reason, the following test case in "files.lua" fails on my machine, even for unmodified Lua. Could it be because I am using Fish shell?
{"sh -c 'kill -s HUP $$'", "exit"},
Could it be because I am using Fish shell?
Not unless fish is your sh, which is unlikely. But your sh may not be bash, and instead be a lighterweight shell aimed at scripting only such as dash. Try replacing sh with bash and see what happens. If that does the trick, then your sh has some limitation in the behavior of kill or $$.