nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples: delete the `shoot` game
[nit.git]
/
tests
/
test_kill_process.nit
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
var p = new Process("sleep", "10")
# Send some signals
-p.signal(sigalarm)
+p.signal sigalarm
p.kill
# Wait for it to die
p.wait
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
# 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