Rollup merge of #106078 - nikic:filecheck-context, r=Mark-Simulacrum

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:
Matthias Krüger 2022-12-24 08:53:48 +01:00 committed by GitHub
commit edb2b71fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2303,6 +2303,8 @@ impl<'test> TestCx<'test> {
} else {
filecheck.args(&["--check-prefixes", &prefixes]);
}
// Provide more context on failures.
filecheck.args(&["--dump-input-context", "100"]);
self.compose_and_run(filecheck, "", None, None)
}