github.com/rogpeppe/go-internal@v1.12.1-0.20240509064211-c8567cf8e95f/testscript/testdata/kill_unnamed.txt (about) 1 [!exec:sleep] skip 2 3 # This test depends on sleep exiting with a non-success status when being 4 # terminated by an interrupt (kill on Windows) signal. 5 6 ! exec sleep 10 & 7 ! exec sleep 10 & 8 9 # Set a timeout. If the kill below fails, this sleep will have terminated 10 # before the test exits and so the test will fail when it completes. 11 ! exec sleep 5 & 12 13 kill -KILL 14 wait