From 7af456226fdafe18da5712653f392b57603d79a1 Mon Sep 17 00:00:00 2001 From: Rodrigo Prado Date: Sat, 11 Nov 2017 15:09:38 -0200 Subject: [PATCH] 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/ --- ext/fileinfo/tests/cve-2014-3538-mb.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/fileinfo/tests/cve-2014-3538-mb.phpt b/ext/fileinfo/tests/cve-2014-3538-mb.phpt index 62d8e43d9b..e462093fb1 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); @@ -32,4 +32,4 @@ Done --EXPECTF-- string(%d) "%s" Ok -Done \ No newline at end of file +Done