Skip to content

Commit bfa7219

Browse files
authored
Rollup merge of #148044 - jyn514:compiletest-logging, r=Zalathar
compiletest: show output in debug logging I had a test I was confused by; the root issue is that `error-pattern` runs before normalization, even though `//~ ERROR` runs after normalization. This logging caught the issue immediately.
2 parents 07e505f + 5976015 commit bfa7219

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,12 @@ impl TestCx<'_> {
207207

208208
debug!(
209209
"run_ui_test: explicit={:?} config.compare_mode={:?} \
210-
proc_res.status={:?} props.error_patterns={:?}",
211-
explicit, self.config.compare_mode, proc_res.status, self.props.error_patterns
210+
proc_res.status={:?} props.error_patterns={:?} output_to_check={:?}",
211+
explicit,
212+
self.config.compare_mode,
213+
proc_res.status,
214+
self.props.error_patterns,
215+
output_to_check,
212216
);
213217

214218
// Compiler diagnostics (expected errors) are always tied to the compile-time ProcRes.

0 commit comments

Comments
 (0)