diff --git a/ext/standard/tests/streams/proc_open_bug69900.phpt b/ext/standard/tests/streams/proc_open_bug69900.phpt index 20d3cba84a5..8e0c99fb832 100644 --- a/ext/standard/tests/streams/proc_open_bug69900.phpt +++ b/ext/standard/tests/streams/proc_open_bug69900.phpt @@ -6,7 +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') || (bool)getenv('APPVEYOR')) ? 10 : 1; +$max_ms = 10; $test_content = ' $max_ms ? 'more' : 'less'), " than $max_ms ms\n"; + + $dt_ms = ($t1 - $t0)*1000; + if ($dt_ms > $max_ms) { + echo "fgets() took more than $max_ms ms ($dt_ms ms)\n"; + } else { + echo "fgets() took less than $max_ms ms\n"; + } } fclose($pipes[0]); @@ -51,7 +57,7 @@ $fl = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test69900.php"; ?> --EXPECTF-- hello0 -fgets() took more than %d ms +fgets() took more than %d ms (%s ms) hello1 fgets() took less than %d ms hello2