Skip to content

Commit d1ebc3a

Browse files
committed
Increase failure threshold for 'extensive backtracking' fileinfo test
A spurious failure for this test was seen on Travis CI (S390X): https://travis-ci.org/github/alexdowad/php-src/jobs/701533828 (The test is expected to finish within 1 second, but it took 1.06 seconds.) Therefore, increase the threshold a bit.
1 parent ba434fb commit d1ebc3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #66731: file: extensive backtraking
2+
Bug #66731: file: extensive backtracking
33
--SKIPIF--
44
<?php
55
if (!class_exists('finfo'))
@@ -20,7 +20,7 @@ $t = microtime(true);
2020
var_dump(finfo_file($fi, $fd));
2121
$t = microtime(true) - $t;
2222
finfo_close($fi);
23-
if ($t < 1) {
23+
if ($t < 1.5) {
2424
echo "Ok\n";
2525
} else {
2626
printf("Failed, time=%.2f\n", $t);

0 commit comments

Comments
 (0)