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.
This commit is contained in:
Andrew Kelley 2022-07-26 20:11:52 -07:00
parent 4e53249d76
commit acf1aa10c2

View File

@ -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();