summaryrefslogtreecommitdiff
path: root/t/op/sleep.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/sleep.t')
-rw-r--r--t/op/sleep.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/op/sleep.t b/t/op/sleep.t
new file mode 100644
index 0000000000..c26d397d2f
--- /dev/null
+++ b/t/op/sleep.t
@@ -0,0 +1,8 @@
+#!./perl
+
+# $Header: sleep.t,v 4.0 91/03/20 01:54:34 lwall Locked $
+
+print "1..1\n";
+
+$x = sleep 2;
+if ($x >= 2 && $x <= 10) {print "ok 1\n";} else {print "not ok 1 $x\n";}