Skip to content

Commit edb2b71

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 74a9b08 + a0b9c5a commit edb2b71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2303,6 +2303,8 @@ impl<'test> TestCx<'test> {
23032303
} else {
23042304
filecheck.args(&["--check-prefixes", &prefixes]);
23052305
}
2306+
// Provide more context on failures.
2307+
filecheck.args(&["--dump-input-context", "100"]);
23062308
self.compose_and_run(filecheck, "", None, None)
23072309
}
23082310

0 commit comments

Comments
 (0)