Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tap: Make os.exit call lua_close on Lua versions that support it
Second optional argument to os.exit is a boolean that determines if lua_close should be called while exiting. This was added in PUC Lua 5.2 and backported to LuaJIT. This allows the tests to provide accurate memory leak information even with failing tests (memory leak info will still be inaccurate with failing tests on PUC Lua 5.1, since PUC Lua 5.1 os.exit bypasses lua_close). Thanks to @vanc for the fix, see luvit#382 (comment)
- Loading branch information