diff options
| author | Alex Dowad <alexinbeijing@gmail.com> | 2020-06-24 08:43:49 +0200 |
|---|---|---|
| committer | Alex Dowad <alexinbeijing@gmail.com> | 2020-06-24 08:46:19 +0200 |
| commit | d1ebc3ab2142e6ee05e1c378fd7dcc597dd3442e (patch) | |
| tree | 1747f8ea2e899ac4e6c097559e23cd64c3e8de36 | |
| parent | ba434fb5a6b5760d7bab4e12ce299514ab569f1e (diff) | |
| download | php-git-d1ebc3ab2142e6ee05e1c378fd7dcc597dd3442e.tar.gz | |
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.
| -rw-r--r-- | ext/fileinfo/tests/cve-2014-3538.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fileinfo/tests/cve-2014-3538.phpt b/ext/fileinfo/tests/cve-2014-3538.phpt index a523861186..0ff2a68685 100644 --- a/ext/fileinfo/tests/cve-2014-3538.phpt +++ b/ext/fileinfo/tests/cve-2014-3538.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #66731: file: extensive backtraking +Bug #66731: file: extensive backtracking --SKIPIF-- <?php if (!class_exists('finfo')) @@ -20,7 +20,7 @@ $t = microtime(true); var_dump(finfo_file($fi, $fd)); $t = microtime(true) - $t; finfo_close($fi); -if ($t < 1) { +if ($t < 1.5) { echo "Ok\n"; } else { printf("Failed, time=%.2f\n", $t); |
