X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fremfiles01.at;fp=tests%2Fremfiles01.at;h=940fd953af79f1f154f103d83fced9f0429468d6;hb=0c6c288b5360fcdb7f9b5826d05c01ade33253f0;hp=8a668a7dea5eaaa348e50b1ad27ab2fc0d85d8eb;hpb=87240ee7c477ae4960cf81d3c38691ae93ceaee8;p=chaz%2Ftar diff --git a/tests/remfiles01.at b/tests/remfiles01.at index 8a668a7..940fd95 100644 --- a/tests/remfiles01.at +++ b/tests/remfiles01.at @@ -40,11 +40,20 @@ chmod 0 a genfile --file b mkdir c -tar -c -f a -z --remove-files b c +# Depending on when the SIGPIPE gets delivered, the invocation below +# may finish with either +# tar: a: Cannot write: Broken pipe +# or +# tar: Child returned status 2 +tar -c -f a -z --remove-files b c 2>err +EC=$? +sed -n '/(child)/p' err >&2 +rm err find . | sort +exit $EC ], -[0], +[2], [. ./a ./b