Skip to content

Commit b508133

Browse files
committed
[skip ci] Increase tolerance for cve-2014-3538 tests
These regularly fail with "Failed, time=1.5x".
1 parent 3fdd3ed commit b508133

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/fileinfo/tests/cve-2014-3538-nojit.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $t = microtime(true);
2424
var_dump(finfo_file($fi, $fd));
2525
$t = microtime(true) - $t;
2626
finfo_close($fi);
27-
if ($t < 1.5) {
27+
if ($t < 2) {
2828
echo "Ok\n";
2929
} else {
3030
printf("Failed, time=%.2f\n", $t);

ext/fileinfo/tests/cve-2014-3538.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $t = microtime(true);
2222
var_dump(finfo_file($fi, $fd));
2323
$t = microtime(true) - $t;
2424
finfo_close($fi);
25-
if ($t < 1.5) {
25+
if ($t < 2) {
2626
echo "Ok\n";
2727
} else {
2828
printf("Failed, time=%.2f\n", $t);

0 commit comments

Comments
 (0)