com php-src: Better line handling: run-tests.php
| From: | Dmitry Stogov | Date: | Tue, 19 Feb 2019 14:16:48 +0000 |
| Subject: | com php-src: Better line handling: run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104734@lists.php.net to get a copy of this message | ||
Commit: 5cde3afda76814bfed00790ac1100b9a1384b978
Author: Dmitry Stogov <dmitry@zend.com> Tue, 19 Feb 2019 17:16:48 +0300
Parents: bf51b081f55fe82e0a1fe4df5bb9f0efe4c495d0
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5cde3afda76814bfed00790ac1100b9a1384b978
Log:
Better line handling
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 53ef88c..198b8f4 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2528,7 +2528,7 @@ COMMAND $cmd
show_file_block('out', $output);
if ($preload) {
- $output = trim(preg_replace("/Warning: Can't preload .*\n/", "",
$output));
+ $output = trim(preg_replace("/Warning: Can't preload .*$/m", "",
$output));
}
if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {