com php-src: Don't preload tests without --FILE-- section: run-tests.php
| From: | Dmitry Stogov | Date: | Tue, 19 Feb 2019 21:06:57 +0000 |
| Subject: | com php-src: Don't preload tests without --FILE-- section: run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104753@lists.php.net to get a copy of this message | ||
Commit: 555fb294ec4c1948b357ee43b6ca3c81873ddf26
Author: Dmitry Stogov <dmitry@zend.com> Wed, 20 Feb 2019 00:06:57 +0300
Parents: 6b0023897976b6fa8d1b1c5f90e25327d9000913
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=555fb294ec4c1948b357ee43b6ca3c81873ddf26
Log:
Don't preload tests without --FILE-- section
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 49da8c9..b9e14f3 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2262,7 +2262,7 @@ TEST $file
$args = isset($section_text['ARGS']) ? ' -- ' .
$section_text['ARGS'] : '';
- if ($preload) {
+ if ($preload && !empty($test_file)) {
save_text($preload_filename, "<?php opcache_compile_file('$test_file');");
$local_pass_options = $pass_options;
unset($pass_options);