diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-24 08:53:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-24 08:53:48 +0100 |
| commit | edb2b71fdb2e4905aaf501b972680ad0930144c9 (patch) | |
| tree | e4677f2219a468ff4728b2f88e74dcc0e5e23111 | |
| parent | 74a9b085177d816d775b68c4fe922256eec92503 (diff) | |
| parent | a0b9c5a9bfe938b0aa74eef826fba7e8849a5df0 (diff) | |
| download | rust-edb2b71fdb2e4905aaf501b972680ad0930144c9.tar.gz rust-edb2b71fdb2e4905aaf501b972680ad0930144c9.zip | |
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.
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 95f6e047bf9..7a3c0d28fc3 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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) } |
