File 'lib2-v2.so' generated from its own source

Instead of being a copy of 'lib2.so', 'lib2-v2.so' has its own source
file ('lib22.c'), so that the test can distinguish both libraries.
This commit is contained in:
Roberto Ierusalimschy
2019-05-03 10:36:19 -03:00
parent 7c5786479c
commit 01bded3d8c
3 changed files with 28 additions and 3 deletions

View File

@@ -275,7 +275,7 @@ else
-- check correct access to global environment and correct
-- parameters
assert(_ENV.x == "lib2-v2" and _ENV.y == DC"lib2-v2")
assert(lib2.id("x") == "x")
assert(lib2.id("x") == true) -- a different "id" implementation
-- test C submodules
local fs, ext = require"lib1.sub"