1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 21:11:02 +02:00

Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  relax test on travis
This commit is contained in:
Anatol Belski
2017-07-28 00:28:12 +02:00

View File

@@ -6,6 +6,7 @@ Bug #69900 Commandline input/output weird behaviour with STDIO
error_reporting(E_ALL);
$fl = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test69900.php";
$max_ms = ((bool)getenv('TRAVIS')) ? 3 : 1;
$test_content = '<?php
@@ -33,7 +34,7 @@ for($i = 0; $i < 10; $i++){
$t1 = microtime(1);
echo $s;
echo "fgets() took ", (($t1 - $t0)*1000 > 1 ? 'more' : 'less'), " than 1 ms\n";
echo "fgets() took ", (($t1 - $t0)*1000 > $max_ms ? 'more' : 'less'), " than $max_ms ms\n";
}
fclose($pipes[0]);
@@ -48,25 +49,25 @@ proc_close($process);
$fl = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test69900.php";
@unlink($fl);
?>
--EXPECT--
--EXPECTF--
hello0
fgets() took more than 1 ms
fgets() took more than %d ms
hello1
fgets() took less than 1 ms
fgets() took less than %d ms
hello2
fgets() took less than 1 ms
fgets() took less than %d ms
hello3
fgets() took less than 1 ms
fgets() took less than %d ms
hello4
fgets() took less than 1 ms
fgets() took less than %d ms
hello5
fgets() took less than 1 ms
fgets() took less than %d ms
hello6
fgets() took less than 1 ms
fgets() took less than %d ms
hello7
fgets() took less than 1 ms
fgets() took less than %d ms
hello8
fgets() took less than 1 ms
fgets() took less than %d ms
hello9
fgets() took less than 1 ms
fgets() took less than %d ms
===DONE===