MT#12025 fix for lua-unit 3.1

Versions of LuaUnit before version 3.1 would export all assertions
functions to the global namespace

Change-Id: I0bdc03f63acbbe05c49ce10a00e551e60f914b3f
(cherry picked from commit f04eed6d7e)
changes/31/2531/1
Victor Seva 10 years ago
parent c9a294528c
commit 77eb07601d

@ -18,6 +18,7 @@ function do_test() {
echo "testing $1 -> reports/${1}.${EXT}"
if ${OUT_FORCE} ; then
cat<<EOF|lua5.1 - > reports/${1}.${EXT}
EXPORT_ASSERT_TO_GLOBALS = true
require "tests/${1}"
---- Control test output:
local lu = LuaUnit
@ -27,6 +28,7 @@ lu:run()
EOF
else
cat<<EOF|lua5.1 -
EXPORT_ASSERT_TO_GLOBALS = true
require "tests/${1}"
---- Control test output:
local lu = LuaUnit

Loading…
Cancel
Save