mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-15 13:05:26 +00:00
initial commit
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
commit
c39114f1a9
64 changed files with 8704 additions and 0 deletions
13
testdata/kill.txt
vendored
Normal file
13
testdata/kill.txt
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[!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 &test_sleep&
|
||||
|
||||
# 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 test_sleep
|
||||
wait test_sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue