mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-09 01:26:40 +00:00
14 lines
363 B
Text
14 lines
363 B
Text
|
|
[!exec:sleep] skip
|
||
|
|
|
||
|
|
# This test depends on sleep exiting with a non-success status when being
|
||
|
|
# terminated by an interrupt (kill on Windows) signal.
|
||
|
|
|
||
|
|
! exec sleep 10 &
|
||
|
|
! exec sleep 10 &
|
||
|
|
|
||
|
|
# Set a timeout. If the kill below fails, this sleep will have terminated
|
||
|
|
# before the test exits and so the test will fail when it completes.
|
||
|
|
! exec sleep 5 &
|
||
|
|
|
||
|
|
kill -KILL
|
||
|
|
wait
|