Skip to content

Commit d594e25

Browse files
committed
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.
1 parent f5e2df7 commit d594e25

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ 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, self.config.compare_mode, proc_res.status, self.props.error_patterns,
212+
output_to_check,
212213
);
213214

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

0 commit comments

Comments
 (0)