summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/03_stdlib/41_sleep
diff options
context:
space:
mode:
Diffstat (limited to 'tests/custom/03_stdlib/41_sleep')
-rw-r--r--tests/custom/03_stdlib/41_sleep7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/custom/03_stdlib/41_sleep b/tests/custom/03_stdlib/41_sleep
index bca6f0d..0f918d3 100644
--- a/tests/custom/03_stdlib/41_sleep
+++ b/tests/custom/03_stdlib/41_sleep
@@ -14,12 +14,15 @@ negative or zero.
let t2 = time();
- printf("Slept for %d second(s).\n", t2 - t1);
+ if (t2 > t1)
+ printf("Slept for at least one second.\n");
+ else
+ printf("Unexpected time delta: %d\n", t2 - t1);
%}
-- End --
-- Expect stdout --
-Slept for 1 second(s).
+Slept for at least one second.
-- End --