Blob Blame History Raw
diff -up luaexpat-1.3.0/tests/test.lua.improve luaexpat-1.3.0/tests/test.lua
--- luaexpat-1.3.0/tests/test.lua.improve	2020-06-29 22:26:26.128128387 -0400
+++ luaexpat-1.3.0/tests/test.lua	2020-06-29 22:27:34.692014057 -0400
@@ -355,7 +355,7 @@ for i=1,100000 do
   lxp.new({})
 end
 collectgarbage(); collectgarbage()
-assert(math.abs(gcinfo() - x) <= 2)
+assert(math.abs((gcinfo and gcinfo() or collectgarbage("count")) - x) <= 5, "Garbage collection test didn't pass!")
 
 
 print"OK"