From acf1aa10c2dcd485496c0db1d9c5378b2c23dd96 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 26 Jul 2022 20:11:52 -0700 Subject: [PATCH] test-cases harness: refresh just before update() This makes it so that in a -Dsingle-threaded build of test-cases, if a crash happens, the test case name will be printed just before the stderr of the crash. --- src/test.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test.zig b/src/test.zig index 08d8ae188a..2f3f1618e0 100644 --- a/src/test.zig +++ b/src/test.zig @@ -1594,6 +1594,7 @@ pub const TestContext = struct { var module_node = update_node.start("parse/analysis/codegen", 0); module_node.activate(); + module_node.context.refresh(); try comp.makeBinFileWritable(); try comp.update(); module_node.end();