]> Dogcows Code - chaz/tar/blobdiff - tests/remfiles01.at
Bugfixes.
[chaz/tar] / tests / remfiles01.at
index 8a668a7dea5eaaa348e50b1ad27ab2fc0d85d8eb..73752b4a450d72bdc17abd5f2af43be6a5cbb663 100644 (file)
@@ -30,6 +30,7 @@ AT_KEYWORDS([create remove-files remfiles01 gzip])
 
 unset TAR_OPTIONS
 AT_CHECK([
+AT_UNPRIVILEGED_PREREQ
 AT_GZIP_PREREQ
 AT_SORT_PREREQ
 
@@ -40,11 +41,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.021248 seconds and 4 git commands to generate.