nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22acc5a
)
test: update test_kill_process to revamped Clock
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 22 May 2016 15:51:18 +0000
(11:51 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 22 May 2016 15:51:18 +0000
(11:51 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests/test_kill_process.nit
patch
|
blob
|
history
diff --git
a/tests/test_kill_process.nit
b/tests/test_kill_process.nit
index
21728c1
..
a9f3e61
100644
(file)
--- a/
tests/test_kill_process.nit
+++ b/
tests/test_kill_process.nit
@@
-21,12
+21,11
@@
var clock = new Clock
var p = new Process("sleep", "10")
# Send some signals
-p.signal(sigalarm)
+p.signal sigalarm
p.kill
# Wait for it to die
p.wait
-var lapse = clock.lapse
# Let's be generous here, as long as it does not take 5 secs out of 10 it's OK
-print lapse.sec < 5
+print clock.lapse < 5.0