]> git.cworth.org Git - tar/blobdiff - tests/remfiles01.at
Imported Upstream version 1.24
[tar] / tests / remfiles01.at
index 940fd953af79f1f154f103d83fced9f0429468d6..86b5c032e8c996f7e279f187619380a1a18923de 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
 
@@ -51,7 +52,9 @@ EC=$?
 sed -n '/(child)/p' err >&2
 rm err
 find . | sort
-exit $EC
+# Gzip exit code is propagated to the shell. Usually it is
+# 141.  We convert all non-zero exits to 2 to make it predictable.
+test $EC && exit 2
 ],
 [2],
 [.