github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/script_wait.txt (about) 1 env GO111MODULE=off 2 3 [!exec:echo] skip 4 [!exec:false] skip 5 6 exec echo foo 7 stdout foo 8 9 exec echo foo & 10 exec echo bar & 11 ! exec false & 12 13 # Starting a background process should clear previous output. 14 ! stdout foo 15 16 # Wait should set the output to the concatenated outputs of the background 17 # programs, in the order in which they were started. 18 wait 19 stdout 'foo\nbar' 20 21 # The end of the test should interrupt or kill any remaining background 22 # programs. 23 [!exec:sleep] skip 24 ! exec sleep 86400 &