]> Dogcows Code - chaz/tar/blobdiff - tests/remfiles01.at
Minor changes.
[chaz/tar] / tests / remfiles01.at
index 8a668a7dea5eaaa348e50b1ad27ab2fc0d85d8eb..940fd953af79f1f154f103d83fced9f0429468d6 100644 (file)
@@ -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
This page took 0.024742 seconds and 4 git commands to generate.