Add test for debug logging during incremental compilation
Debug logging during incremental compilation had been broken for some time, until #89343 fixed it (among other things). Add a test so this is less likely to break without being noticed. This test is nearly a copy of the `src/test/ui/rustc-rust-log.rs` test, but tests debug logging in the incremental compliation code paths.
This commit is contained in:
parent
93f80bff94
commit
aefbd40140
2 changed files with 24 additions and 0 deletions
8
src/test/incremental/auxiliary/rustc-rust-log-aux.rs
Normal file
8
src/test/incremental/auxiliary/rustc-rust-log-aux.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// rustc-env:RUSTC_LOG=debug
|
||||
#[cfg(rpass1)]
|
||||
pub fn foo() {}
|
||||
|
||||
#[cfg(rpass2)]
|
||||
pub fn foo() {
|
||||
println!();
|
||||
}
|
16
src/test/incremental/rustc-rust-log.rs
Normal file
16
src/test/incremental/rustc-rust-log.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
// revisions: rpass1 rpass2
|
||||
// This test is just checking that we won't ICE if logging is turned
|
||||
// on; don't bother trying to compare that (copious) output.
|
||||
//
|
||||
// dont-check-compiler-stdout
|
||||
// dont-check-compiler-stderr
|
||||
// aux-build: rustc-rust-log-aux.rs
|
||||
// rustc-env:RUSTC_LOG=debug
|
||||
|
||||
#[cfg(rpass1)]
|
||||
fn main() {}
|
||||
|
||||
#[cfg(rpass2)]
|
||||
fn main() {
|
||||
println!();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue