Commit e229ffd
committed
fix(ci): anchor LEAKED TEST SUMMARY grep to line start
The check `! grep -e 'LEAKED TEST SUMMARY'` was too broad: it matched
the phrase as a substring anywhere in valgrind-run-tests.out, including
inside the PHPINFO section where run-tests.php writes phpinfo() output.
Before this fix, the check was masked on PHP 7.0/7.1 because
`bailout_double_hook_clear.phpt` leaked under valgrind, causing
run-tests.php to exit 1, which short-circuited the && and skipped grep.
After adding the SKIPIF to that test, run-tests.php exits 0 and grep
runs, finding 6 embedded occurrences that were always there.
The actual section header written by run-tests.php is:
LEAKED TEST SUMMARY
at line start with no leading spaces. The false-positive lines look like:
" valgrind LEAKED TEST SUMMARY. The test still runs in the normal"
with leading spaces — clearly not the section header.
Anchoring with ^ matches only the real header.1 parent 7601bcc commit e229ffd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments