tests: Correct mistake from latst merge, use the same variable name in all 3 places...
authorKim Alvefur <zash@zash.se>
Sun, 10 Jan 2016 02:25:16 +0000 (03:25 +0100)
committerKim Alvefur <zash@zash.se>
Sun, 10 Jan 2016 02:25:16 +0000 (03:25 +0100)
tests/test.lua

index 1192b7b83a659f4a2987dd50e7a194d19f6abbd7..87467e53b90e7feee8dc1b2b937961f666f99335 100644 (file)
@@ -145,10 +145,10 @@ function dotest(unitname)
                unit._M = unit;
        end
        setfenv(chunk, unit);
-       local success, err = pcall(chunk);
+       local success, ret = pcall(chunk);
        _fakeG.module, _fakeG._M = oldmodule, old_M;
        if not success then
-               print("WARNING: ", "Failed to initialise module: "..unitname, err);
+               print("WARNING: ", "Failed to initialise module: "..unitname, ret);
                return;
        end