diff options
author | Rob Landley <rob@landley.net> | 2020-05-23 00:56:48 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-05-23 00:56:48 -0500 |
commit | 0c2f2030dae091b934f753f0ae920cbb7b06434d (patch) | |
tree | 6215a8ff28c231994e6a845670f2a699e3634419 | |
parent | f1c36c35f0d909548c808e0fa31b84a6fa2a57e0 (diff) | |
download | toybox-0c2f2030dae091b934f753f0ae920cbb7b06434d.tar.gz |
Ahem: have the backgrounding test actually background.
Point is to make sure the consumer waits for all output, not for process exit.
-rw-r--r-- | tests/sh.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sh.test b/tests/sh.test index 81040485..429b7706 100644 --- a/tests/sh.test +++ b/tests/sh.test @@ -161,7 +161,7 @@ testing "{5..1..2}" "echo {5..1..2}" "5 3 1\n" "" "" testing "{a..z..-3}" "echo {a..z..-3}" "a d g j m p s v y\n" "" "" testing 'background pipe block' \ - 'if true; then { sleep .25;bzcat "$FILES"/blkid/ntfs.bz2; }; fi | wc -c' \ + 'if true; then { sleep .25;bzcat "$FILES"/blkid/ntfs.bz2; }& fi | wc -c' \ '8388608\n' '' '' #$ IFS=x X=xyxz; for i in abc${X}def; do echo =$i=; done |