com php-src: Fix intermittent failure of bug_68819 _002.phpt: ext/fileinfo/tests/bug68819 _002.phpt

From: Date: Tue, 01 Mar 2016 23:34:36 +0000
Subject: com php-src: Fix intermittent failure of bug_68819 _002.phpt: ext/fileinfo/tests/bug68819 _002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91221@lists.php.net to get a copy of this message
Commit: 471540d2853b3077af5dfbbbf2146edc6228a0cb Author: Nikita Popov <nikic@php.net> Wed, 2 Mar 2016 00:34:36 +0100 Parents: 0bbea605241932eba24d82378b6ea5fcf8307029 Branches: PHP-5.6 PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=471540d2853b3077af5dfbbbf2146edc6228a0cb Log: Fix intermittent failure of bug_68819_002.phpt The test used rand(32, 127) to select the character, however chr(127) results in "data" instead of the expected result, so this test would fail in something like 1% of the runs. Replace rand() with fixed character "a". Changed paths: M ext/fileinfo/tests/bug68819_002.phpt Diff: diff --git a/ext/fileinfo/tests/bug68819_002.phpt b/ext/fileinfo/tests/bug68819_002.phpt index cec238d..7d5f6c6 100644 --- a/ext/fileinfo/tests/bug68819_002.phpt +++ b/ext/fileinfo/tests/bug68819_002.phpt @@ -12,7 +12,7 @@ $string .= "\r\n"; $string .= "''''"; // Total string length > 8192 -$string .= str_repeat(chr(rand(32, 127)), 8184); +$string .= str_repeat("a", 8184); // Ending in this string $string .= "say";

« previous php.cvs (#91221) next »