Skip to content

Commit a0b9c5a

Browse files
committed
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.
1 parent 8a746f4 commit a0b9c5a

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
@@ -2299,6 +2299,8 @@ impl<'test> TestCx<'test> {
22992299
} else {
23002300
filecheck.args(&["--check-prefixes", &prefixes]);
23012301
}
2302+
// Provide more context on failures.
2303+
filecheck.args(&["--dump-input-context", "100"]);
23022304
self.compose_and_run(filecheck, "", None, None)
23032305
}
23042306

0 commit comments

Comments
 (0)