Skip to content

Commit b897ad6

Browse files
committed
Hack up the test harness to actually print the output we care about.
1 parent 51648d6 commit b897ad6

File tree

1 file changed

+2
-2
lines changed
  • src/tools/compiletest/src/runtest

1 file changed

+2
-2
lines changed

src/tools/compiletest/src/runtest/ui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl TestCx<'_> {
2424
let pm = self.pass_mode();
2525
let should_run = self.should_run(pm);
2626
let emit_metadata = self.should_emit_metadata(pm);
27-
let proc_res = self.compile_test(should_run, emit_metadata);
27+
let mut proc_res = self.compile_test(should_run, emit_metadata);
2828
self.check_if_test_should_compile(self.props.fail_mode, pm, &proc_res);
2929
if matches!(proc_res.truncated, Truncated::Yes)
3030
&& !self.props.dont_check_compiler_stdout
@@ -128,7 +128,7 @@ impl TestCx<'_> {
128128
}
129129

130130
let output_to_check = if let WillExecute::Yes = should_run {
131-
let proc_res = self.exec_compiled_test();
131+
proc_res = self.exec_compiled_test();
132132
let run_output_errors = if self.props.check_run_results {
133133
self.load_compare_outputs(&proc_res, TestOutput::Run, explicit)
134134
} else {

0 commit comments

Comments
 (0)