summaryrefslogtreecommitdiff
path: root/tests/test-Lua.cc
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-08-07 15:07:19 -0700
committerNicolas Noble <pixel@nobis-crew.org>2013-08-07 15:07:19 -0700
commit06c4d6a7bca960a163cf45d37cc5f42684d6840d (patch)
tree0e3e8e7edaa3f20b9d81b7a51f8e950dafe88421 /tests/test-Lua.cc
parente1f011cbce057e0d4452f8c91329afa1ac3a80a3 (diff)
Deferring object collection in Lua because yielding from the garbage collector is a very bad idea.
Diffstat (limited to 'tests/test-Lua.cc')
-rw-r--r--tests/test-Lua.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-Lua.cc b/tests/test-Lua.cc
index f0d6bb3..bffbfaa 100644
--- a/tests/test-Lua.cc
+++ b/tests/test-Lua.cc
@@ -254,9 +254,9 @@ void MainTask::Do() {
L.load("obj2 = ObjectTest.new() obj2:destroy()");
TAssert(objGotDestroyed == 1);
L.load("ObjectTest.new() collectgarbage('collect')");
- TAssert(objGotDestroyed == 2);
+// TAssert(objGotDestroyed == 2);
L.close();
- TAssert(objGotDestroyed == 3);
+// TAssert(objGotDestroyed == 3);
Printer::log(M_STATUS, "Test::Lua passed.");
}