From a0b9c5a9bfe938b0aa74eef826fba7e8849a5df0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 23 Dec 2022 09:40:24 +0100 Subject: [PATCH] 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. --- src/tools/compiletest/src/runtest.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 72a43108dc4..dc8b3bce124 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -2299,6 +2299,8 @@ fn verify_with_filecheck(&self, output: &Path) -> ProcRes { } else { filecheck.args(&["--check-prefixes", &prefixes]); } + // Provide more context on failures. + filecheck.args(&["--dump-input-context", "100"]); self.compose_and_run(filecheck, "", None, None) }