com php-src: Set display_startup_errors=0 when runn ing skipif: run-tests.php
| From: | Nikita Popov | Date: | Thu, 10 Oct 2019 08:43:21 +0000 |
| Subject: | com php-src: Set display_startup_errors=0 when runn ing skipif: run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108849@lists.php.net to get a copy of this message | ||
Commit: c1da10b77b370c6689675af2c4ce6ffc4ce124df
Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 10 Oct 2019 10:43:21 +0200
Parents: 51501dacb16f11ad375a99b31092c86b74f72a4f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c1da10b77b370c6689675af2c4ce6ffc4ce124df
Log:
Set display_startup_errors=0 when running skipif
Now that we're displaying errors in skipif, suppress this particular
category. Otherwise we get warnings in the SKIPIF of tests with
EXTENSION where the extension does not exist, and there's no way
to suppress them.
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 5083dce023e..9ee7299f9c5 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2135,7 +2135,7 @@ TEST $file
junit_start_timer($shortname);
- $output = system_with_timeout("$extra $php $pass_options $extra_options -q
$orig_ini_settings $no_file_cache -d display_errors=1 \"$test_skipif\"", $env);
+ $output = system_with_timeout("$extra $php $pass_options $extra_options -q
$orig_ini_settings $no_file_cache -d display_errors=1 -d display_startup_errors=0
\"$test_skipif\"", $env);
$output = trim($output);
junit_finish_timer($shortname);