diff options
| author | Nikita Popov <npopov@redhat.com> | 2022-12-23 09:40:24 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2022-12-23 09:40:24 +0100 |
| commit | a0b9c5a9bfe938b0aa74eef826fba7e8849a5df0 (patch) | |
| tree | 1e3c3f7fa03e7fb55df2a41b76d9456643b0dca5 | |
| parent | 8a746f4ac3a489efb724cde813607f3b96c2df7b (diff) | |
| download | rust-a0b9c5a9bfe938b0aa74eef826fba7e8849a5df0.tar.gz rust-a0b9c5a9bfe938b0aa74eef826fba7e8849a5df0.zip | |
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 72a43108dc4..dc8b3bce124 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -2299,6 +2299,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) } |
