From 4e2f90985cbffa5b3e6e7840543d684a6dd18aed Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sun, 28 May 2017 14:11:48 +0200 Subject: ltests.js: fixed upvalue, removed collectgarbage calls --- tests/test-suite/inprogress/api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test-suite/inprogress/api.js') diff --git a/tests/test-suite/inprogress/api.js b/tests/test-suite/inprogress/api.js index c237a9c..914c28a 100644 --- a/tests/test-suite/inprogress/api.js +++ b/tests/test-suite/inprogress/api.js @@ -1219,11 +1219,11 @@ test("[test-suite] api: testing get/setuservalue", function (t) { assert(debug.getuservalue(4) == nil) debug.setuservalue(b, function () return 10 end) - collectgarbage() -- function should not be collected + -- collectgarbage() -- function should not be collected assert(debug.getuservalue(b)() == 10) debug.setuservalue(b, 134) - collectgarbage() -- number should not be a problem for collector + -- collectgarbage() -- number should not be a problem for collector assert(debug.getuservalue(b) == 134) `, L; @@ -1287,7 +1287,7 @@ test("[test-suite] api: long chain of userdata", { skip: true }, function (t) { debug.setuservalue(bb, b) b = bb end - collectgarbage() -- nothing should not be collected + -- collectgarbage() -- nothing should not be collected for i = 1, 1000 do b = debug.getuservalue(b) end @@ -1362,7 +1362,7 @@ test("[test-suite] api: reuse of references", { skip: true }, function (t) { a = T.ref({}) - collectgarbage() + -- collectgarbage() assert(type(T.getref(a)) == 'table') `, L; -- cgit v1.2.3-54-g00ecf