Browse Source

Reduce memory usage by resetting the arena on each test case

rexim 3 years ago
parent
commit
57de392e36
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test.c

+ 1 - 0
test.c

@@ -369,6 +369,7 @@ int main(int argc, char **argv)
         } else {
             if (replay_test_case(program_path, actual_canvas, test_cases[i].expected_file_path, test_cases[i].actual_file_path, test_cases[i].diff_file_path) == REPLAY_ERRORED) return_defer(1);
         }
+        arena_reset(&default_arena);
     }
 defer:
     arena_free(&default_arena);