compiletest: show output in debug logging#148044
Conversation
|
Some changes occurred in src/tools/compiletest cc @jieyouxu |
This comment has been minimized.
This comment has been minimized.
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.
d594e25 to
5976015
Compare
There was a problem hiding this comment.
This change simply adds output_to_check onto an existing debug log.
@jyn514 can you show an example of the change in output that results from this?
|
I’m vaguely worried about this being too verbose; how does the output look in practice? Maybe it’s actually fine? |
|
the output varies wildly depending on the test. here's an example for a small test with The original use case I had was for an Perhaps this could check if it's parsing JSON and only show the I do want to note that compiletest is already extremely verbose when passed so I don't feel like this is that much of a drawback ... |
|
Sounds good enough for me. This is a low-stakes change, so let’s just merge it; if someone finds it annoying later they can propose limiting or removing it at that time. @bors r+ rollup |
…thar 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.
…thar 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.
Rollup of 14 pull requests Successful merges: - #144936 (CFI: Fix types that implement Fn, FnMut, or FnOnce) - #147185 (repr(transparent): do not consider repr(C) types to be 1-ZST) - #147840 (Rework unsizing coercions in the new solver) - #147915 (Update target maintainers android.md) - #148013 (1.91.0 release notes) - #148044 (compiletest: show output in debug logging) - #148057 (tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack) - #148139 (Add `coverage` scope for controlling paths in code coverage) - #148154 (Add a mailmap entry) - #148158 (ci: loongarch64: use medium code model to avoid relocation overflows) - #148166 (Re-enable macro-stepping test for AArch64) - #148172 (rustc-dev-guide subtree update) - #148175 (Fix typos: duplicate words in comments) - #148186 (rustdoc-search: add an integration test for CCI) Failed merges: - #147935 (Add LLVM realtime sanitizer) r? `@ghost` `@rustbot` modify labels: rollup
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.
Rollup of 14 pull requests Successful merges: - rust-lang/rust#144936 (CFI: Fix types that implement Fn, FnMut, or FnOnce) - rust-lang/rust#147185 (repr(transparent): do not consider repr(C) types to be 1-ZST) - rust-lang/rust#147840 (Rework unsizing coercions in the new solver) - rust-lang/rust#147915 (Update target maintainers android.md) - rust-lang/rust#148013 (1.91.0 release notes) - rust-lang/rust#148044 (compiletest: show output in debug logging) - rust-lang/rust#148057 (tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack) - rust-lang/rust#148139 (Add `coverage` scope for controlling paths in code coverage) - rust-lang/rust#148154 (Add a mailmap entry) - rust-lang/rust#148158 (ci: loongarch64: use medium code model to avoid relocation overflows) - rust-lang/rust#148166 (Re-enable macro-stepping test for AArch64) - rust-lang/rust#148172 (rustc-dev-guide subtree update) - rust-lang/rust#148175 (Fix typos: duplicate words in comments) - rust-lang/rust#148186 (rustdoc-search: add an integration test for CCI) Failed merges: - rust-lang/rust#147935 (Add LLVM realtime sanitizer) r? `@ghost` `@rustbot` modify labels: rollup
I had a test I was confused by; the root issue is that
error-patternruns before normalization, even though//~ ERRORruns after normalization. This logging caught the issue immediately.