com php-src: fix test: ext/opcache/tests/blacklist-win32.phpt

From: Date: Fri, 13 Jan 2017 13:40:31 +0000
Subject: com php-src: fix test: ext/opcache/tests/blacklist-win32.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96713@lists.php.net to get a copy of this message
Commit: 8d1aab2aee9f5ae517e5f2fe640d10a7783bc2df Author: Anatol Belski <ab@php.net> Fri, 13 Jan 2017 14:40:31 +0100 Parents: 527bf4d8e6c162d3180464398c94f6bb36b3d42f Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d1aab2aee9f5ae517e5f2fe640d10a7783bc2df Log: fix test Same as before actulaly - the host process running with Opcache enabled, all the intermediate scripts land in cache. So the count can be variable, maybe even better to just test for > 0. Changed paths: M ext/opcache/tests/blacklist-win32.phpt Diff: diff --git a/ext/opcache/tests/blacklist-win32.phpt b/ext/opcache/tests/blacklist-win32.phpt index 1e479b6..e409527 100644 --- a/ext/opcache/tests/blacklist-win32.phpt +++ b/ext/opcache/tests/blacklist-win32.phpt @@ -18,6 +18,7 @@ $conf[4] = preg_replace("!^\\Q".dirname(__FILE__)."\\E!", "__DIR__", $conf[4]); print_r($conf); include("blacklist.inc"); $status = opcache_get_status(); +/* Probably should only test for > 0 here.*/ print_r(count($status['scripts'])); ?> --EXPECTF-- @@ -32,4 +33,4 @@ Array [6] => %scurrent.php ) ok -1 +5

« previous php.cvs (#96713) next »