diff options
author | Anatol Belski <ab@php.net> | 2015-03-16 13:21:33 -0700 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-03-16 13:21:33 -0700 |
commit | 042dd8602e114253bddbd10a6df6c7bf24b3d7e5 (patch) | |
tree | 0c604a3195462330b1351ffc4ff2075870bcc223 /tests/basic/timeout_variation_8.phpt | |
parent | 59a2a900a527f15b5a481bdb59b7af2db9d110b3 (diff) | |
download | php-git-042dd8602e114253bddbd10a6df6c7bf24b3d7e5.tar.gz |
use busy sleep instead of sleep() for timeout tests
Diffstat (limited to 'tests/basic/timeout_variation_8.phpt')
-rw-r--r-- | tests/basic/timeout_variation_8.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/basic/timeout_variation_8.phpt b/tests/basic/timeout_variation_8.phpt index dfb2d2e69e..25a208cca7 100644 --- a/tests/basic/timeout_variation_8.phpt +++ b/tests/basic/timeout_variation_8.phpt @@ -3,12 +3,14 @@ Timeout within foreach loop --FILE-- <?php +include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc"; + $t = 3; set_time_limit($t); foreach(range(0, 42) as $i) { echo 1; - sleep(1); + busy_sleep(1); } ?> |