Skip to content

Commit 89158e2

Browse files
committed
Auto merge of rust-lang#110942 - Zalathar:coverage-tests, r=Mark-Simulacrum
Don't accidentally ignore all output in `tests/run-make/coverage-reports` diffs Because the literal pipe `|` character was not escaped, these regexes ended up accidentally ignoring every line in the coverage report output, so the tests would not fail even if the output was wrong.
2 parents c1bb0e0 + a6fa0e0 commit 89158e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-make/coverage-reports/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ else
174174
# files are redundant, so there is no need to generate `expected_*.json` files or
175175
# compare actual JSON results.)
176176

177-
$(DIFF) --ignore-matching-lines='^ | .*::<.*>.*:$$' --ignore-matching-lines='^ | <.*>::.*:$$' \
177+
$(DIFF) --ignore-matching-lines='^ \| .*::<.*>.*:$$' --ignore-matching-lines='^ \| <.*>::.*:$$' \
178178
179179
( grep -q '^\/\/ ignore-llvm-cov-show-diffs' $(SOURCEDIR)/[email protected] && \
180180
>&2 echo 'diff failed, but suppressed with `// ignore-llvm-cov-show-diffs` in $(SOURCEDIR)/[email protected]' \

0 commit comments

Comments
 (0)