mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-14 20:11:27 +07:00
rnd gc for fuzz tests
This commit is contained in:
@@ -117,5 +117,12 @@ end
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|
||||||
evo.destroy(__table_unpack(all_entity_list))
|
evo.destroy(__table_unpack(all_entity_list))
|
||||||
evo.collect_garbage()
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|||||||
@@ -123,5 +123,12 @@ end
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|
||||||
evo.destroy(__table_unpack(all_entity_list))
|
evo.destroy(__table_unpack(all_entity_list))
|
||||||
evo.collect_garbage()
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|||||||
@@ -77,5 +77,12 @@ end
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|
||||||
evo.destroy(__table_unpack(all_entity_list))
|
evo.destroy(__table_unpack(all_entity_list))
|
||||||
evo.collect_garbage()
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|||||||
@@ -108,6 +108,24 @@ end
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
evo.destroy(__table_unpack(all_entity_list))
|
if math.random(1, 2) == 1 then
|
||||||
evo.destroy(__table_unpack(all_fragment_list))
|
evo.collect_garbage()
|
||||||
evo.collect_garbage()
|
end
|
||||||
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.destroy(__table_unpack(all_entity_list))
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
evo.destroy(__table_unpack(all_fragment_list))
|
||||||
|
else
|
||||||
|
evo.destroy(__table_unpack(all_fragment_list))
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
evo.destroy(__table_unpack(all_entity_list))
|
||||||
|
end
|
||||||
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|||||||
@@ -63,5 +63,12 @@ end
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|
||||||
evo.destroy(__table_unpack(all_entity_list))
|
evo.destroy(__table_unpack(all_entity_list))
|
||||||
evo.collect_garbage()
|
|
||||||
|
if math.random(1, 2) == 1 then
|
||||||
|
evo.collect_garbage()
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user