summaryrefslogtreecommitdiff
path: root/tests/basic/timeout_variation_3.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/timeout_variation_3.phpt')
-rw-r--r--tests/basic/timeout_variation_3.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/basic/timeout_variation_3.phpt b/tests/basic/timeout_variation_3.phpt
index 0c4b9e8e71..7bff09680e 100644
--- a/tests/basic/timeout_variation_3.phpt
+++ b/tests/basic/timeout_variation_3.phpt
@@ -1,5 +1,9 @@
--TEST--
Timeout within eval
+--SKIPIF--
+<?php
+ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
+?>
--FILE--
<?php
@@ -10,7 +14,7 @@ set_time_limit($t);
function hello ($t) {
echo "call", PHP_EOL;
- busy_sleep($t*2);
+ busy_wait($t*2);
}
eval('hello($t);');