Provide more context on FileCheck failures

FileCheck provides 5 lines of context by default. This is often
insufficient to analyze failures that happen in CI. Increase the
amount of context to 100 lines.
This commit is contained in:
Nikita Popov 2022-12-23 09:40:24 +01:00
parent 8a746f4ac3
commit a0b9c5a9bf

View File

@ -2299,6 +2299,8 @@ fn verify_with_filecheck(&self, output: &Path) -> ProcRes {
} else { } else {
filecheck.args(&["--check-prefixes", &prefixes]); filecheck.args(&["--check-prefixes", &prefixes]);
} }
// Provide more context on failures.
filecheck.args(&["--dump-input-context", "100"]);
self.compose_and_run(filecheck, "", None, None) self.compose_and_run(filecheck, "", None, None)
} }