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