com php-src: Small change in the test to pass: ext/fileinfo/tests/cve-2014-3538-mb.phpt
| From: | Peter Kokot | Date: | Thu, 14 Feb 2019 19:12:00 +0000 |
| Subject: | com php-src: Small change in the test to pass: ext/fileinfo/tests/cve-2014-3538-mb.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104643@lists.php.net to get a copy of this message | ||
Commit: 34ca92212520599cb2ad299682deb692c4bf5889
Author: Rodrigo Prado <royopa@gmail.com> Thu, 14 Feb 2019 20:12:00 +0100
Committer: Peter Kokot <peterkokot@gmail.com> Thu, 14 Feb 2019 20:12:00 +0100
Parents: 31a01302dd7f2773f1bcdd6cfeb363e0ad522940
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=34ca92212520599cb2ad299682deb692c4bf5889
Log:
Small change in the test to pass
This test was not passing because the VM called by travis CI is slow, see below the failure:
http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tests&file=ext%2Ffileinfo%2Ftests%2Fcve-2014-3538-mb..phpt
User Group: PHPSP #phptestfestbrasil
http://phpsp.org.br/
Changed paths:
M ext/fileinfo/tests/cve-2014-3538-mb.phpt
Diff:
diff --git a/ext/fileinfo/tests/cve-2014-3538-mb.phpt b/ext/fileinfo/tests/cve-2014-3538-mb.phpt
index a29729f..e462093 100644
--- a/ext/fileinfo/tests/cve-2014-3538-mb.phpt
+++ b/ext/fileinfo/tests/cve-2014-3538-mb.phpt
@@ -17,7 +17,7 @@ $t = microtime(true);
var_dump(finfo_file($fi, $fd));
$t = microtime(true) - $t;
finfo_close($fi);
-if ($t < 1) {
+if ($t < 3) {
echo "Ok\n";
} else {
printf("Failed, time=%.2f\n", $t);