X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=tests%2Fremfiles01.at;h=940fd953af79f1f154f103d83fced9f0429468d6;hb=762be4f2bd696b3fcc381da7d78fcdd4114215ec;hp=8a668a7dea5eaaa348e50b1ad27ab2fc0d85d8eb;hpb=4dfcd6c054a5e9e1a371c822a3be90564dd9b690;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