3 # Checks that background processes' output is not lost when a foreground
4 # process (or another background process) does not match its expectation.
8 < & sh -c 'echo "I crash in background" && sleep 2'
11 < & sh -c 'echo "I also crash in background" && sleep 1'
14 < $ sh -c 'echo "I crash in foreground"'
16 > Output of <meh.tesh:8> mismatch:
20 > +I crash in foreground
21 > Test suite `meh.tesh': NOK (<meh.tesh:8> output mismatch)
22 > Output of <meh.tesh:5> mismatch:
26 > +I also crash in background
27 > Test suite `meh.tesh': NOK (<meh.tesh:5> output mismatch)
28 > Test suite `meh.tesh': NOK (<meh.tesh:2> timeout after 4 sec)
29 > Output of <meh.tesh:2> mismatch:
33 > +I crash in background
34 > Test suite `meh.tesh': NOK (<meh.tesh:2> output mismatch)