diff --git a/develop/fuzzing/batch_destroy_fuzz.lua b/develop/fuzzing/batch_destroy_fuzz.lua index 070da53..858270b 100644 --- a/develop/fuzzing/batch_destroy_fuzz.lua +++ b/develop/fuzzing/batch_destroy_fuzz.lua @@ -117,5 +117,12 @@ end --- --- +if math.random(1, 2) == 1 then + evo.collect_garbage() +end + evo.destroy(__table_unpack(all_entity_list)) -evo.collect_garbage() + +if math.random(1, 2) == 1 then + evo.collect_garbage() +end diff --git a/develop/fuzzing/destroy_fuzz.lua b/develop/fuzzing/destroy_fuzz.lua index 20fa2ba..0414da1 100644 --- a/develop/fuzzing/destroy_fuzz.lua +++ b/develop/fuzzing/destroy_fuzz.lua @@ -123,5 +123,12 @@ end --- --- +if math.random(1, 2) == 1 then + evo.collect_garbage() +end + evo.destroy(__table_unpack(all_entity_list)) -evo.collect_garbage() + +if math.random(1, 2) == 1 then + evo.collect_garbage() +end diff --git a/develop/fuzzing/explicit_fuzz.lua b/develop/fuzzing/explicit_fuzz.lua index 6aeb7c6..2744268 100644 --- a/develop/fuzzing/explicit_fuzz.lua +++ b/develop/fuzzing/explicit_fuzz.lua @@ -77,5 +77,12 @@ end --- --- +if math.random(1, 2) == 1 then + evo.collect_garbage() +end + evo.destroy(__table_unpack(all_entity_list)) -evo.collect_garbage() + +if math.random(1, 2) == 1 then + evo.collect_garbage() +end diff --git a/develop/fuzzing/requires_fuzz.lua b/develop/fuzzing/requires_fuzz.lua index d0ad46c..073f2f4 100644 --- a/develop/fuzzing/requires_fuzz.lua +++ b/develop/fuzzing/requires_fuzz.lua @@ -108,6 +108,24 @@ end --- --- -evo.destroy(__table_unpack(all_entity_list)) -evo.destroy(__table_unpack(all_fragment_list)) -evo.collect_garbage() +if math.random(1, 2) == 1 then + 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 diff --git a/develop/fuzzing/unique_fuzz.lua b/develop/fuzzing/unique_fuzz.lua index 731ba5e..a572bd6 100644 --- a/develop/fuzzing/unique_fuzz.lua +++ b/develop/fuzzing/unique_fuzz.lua @@ -63,5 +63,12 @@ end --- --- +if math.random(1, 2) == 1 then + evo.collect_garbage() +end + evo.destroy(__table_unpack(all_entity_list)) -evo.collect_garbage() + +if math.random(1, 2) == 1 then + evo.collect_garbage() +end