From 56a5fb82651b60b2644a343df4f57dcd99995033 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Mon, 9 Jun 2025 19:50:49 +0700 Subject: [PATCH] disable gc for fuzz tests --- develop/basics.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/develop/basics.lua b/develop/basics.lua index 441d16e..6b71a22 100644 --- a/develop/basics.lua +++ b/develop/basics.lua @@ -25,6 +25,9 @@ end function basics.describe_fuzz(modname) print(string.format('| %s ... |', modname)) + collectgarbage('collect') + collectgarbage('stop') + do local iters = 0 @@ -52,6 +55,9 @@ function basics.describe_fuzz(modname) print('|-- FUZZ FAIL: ' .. result) end end + + collectgarbage('restart') + collectgarbage('collect') end ---@param name string