error_reporting(E_ALL);
$fl = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test69900.php";
+$max_ms = ((bool)getenv('TRAVIS')) ? 3 : 1;
$test_content = '<?php
$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]);
$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===