Duplicate tests that are run twice as both C and C++ tests to fix parallel make: keyword_rename
This commit is contained in:
parent
bc3bf51af2
commit
78b113558f
5 changed files with 32 additions and 1 deletions
12
Examples/test-suite/lua/keyword_rename_c_runme.lua
Normal file
12
Examples/test-suite/lua/keyword_rename_c_runme.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
require("import") -- the import fn
|
||||
import("keyword_rename_c") -- import lib into global
|
||||
kn=keyword_rename_c--alias
|
||||
|
||||
-- catching undefined variables
|
||||
local env = _ENV -- Lua 5.2
|
||||
if not env then env = getfenv () end -- Lua 5.1
|
||||
setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
|
||||
|
||||
-- Check renaming of Lua keywords
|
||||
assert(kn.c_end(5) == 5)
|
||||
assert(kn.c_nil(7) == 7)
|
||||
Loading…
Add table
Add a link
Reference in a new issue