Skip to content

Commit 7d90f48

Browse files
committed
Require a space ofter run-tests "warn"
We don't want to treat a PHP "Warning: " as a run-tests warn.
1 parent b09bddc commit 7d90f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@ function run_test($php, $file, $env)
21632163

21642164
if (!strncasecmp('info', $output, 4) && preg_match('/^info\s*(.+)/i', $output, $m)) {
21652165
$info = " (info: $m[1])";
2166-
} elseif (!strncasecmp('warn', $output, 4) && preg_match('/^warn\s*(.+)/i', $output, $m)) {
2166+
} elseif (!strncasecmp('warn', $output, 4) && preg_match('/^warn\s+(.+)/i', $output, $m)) {
21672167
$warn = true; /* only if there is a reason */
21682168
$info = " (warn: $m[1])";
21692169
} elseif (!strncasecmp('xfail', $output, 5)) {

0 commit comments

Comments
 (0)