authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-26 20:11:52-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-26 20:11:52-07:00
logacf1aa10c2dcd485496c0db1d9c5378b2c23dd96
tree51f94be72a51029c84e80a9db88a94a9c7987d18
parent4e53249d769346683d45d4a4cb4a437388f9e186

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.

1 files changed, 1 insertions(+), 0 deletions(-)

src/test.zig+1
......@@ -1594,6 +1594,7 @@ pub const TestContext = struct {
15941594
15951595 var module_node = update_node.start("parse/analysis/codegen", 0);
15961596 module_node.activate();
1597 module_node.context.refresh();
15971598 try comp.makeBinFileWritable();
15981599 try comp.update();
15991600 module_node.end();