If the test executes, we get a new ProcRes from executing the test and we call get_output on that to get the output to pass into check_all_error_patterns.
|
let output_to_check = if let WillExecute::Yes = should_run { |
We continue to pass in the old ProcRes though, so if the test fails, we don't actually print the output we failed to match against. This makes these rather annoying to debug.
If the test executes, we get a new
ProcResfrom executing the test and we callget_outputon that to get the output to pass intocheck_all_error_patterns.rust/src/tools/compiletest/src/runtest/ui.rs
Line 130 in 3d86494
We continue to pass in the old
ProcResthough, so if the test fails, we don't actually print the output we failed to match against. This makes these rather annoying to debug.