gzip --no-name: avoid spurious warning
[debian/gzip] / tests / timestamp
index c488760aa832c92219e386ccafbdccdc58042004..141c1d4dcc029e2d851f3d8dfdad029f08d871bc 100755 (executable)
@@ -29,7 +29,7 @@ for time in 190101010000 196912312359.59 197001010000 210602070628.16; do
      gzip in
      test $? = 2 || fail=1
   fi
-  rm -f in in.gz
+  rm -f in.gz in
 done
 
 # Test that time stamps in range for gzip do not generate warnings.
@@ -37,7 +37,7 @@ for time in 197001010000.01 203801190314.07 203801190314.08 210602070628.15; do
   if touch -t $time in; then
      gzip in || fail=1
   fi
-  rm -f in in.gz
+  rm -f in.gz in
 done
 
 # On platforms that fail to support time stamps within gzip's range,
@@ -49,4 +49,7 @@ touch -t 210602070628.15 in || {
   test $? = 2 || fail=1
 }
 
+# Ensure that --no-name does not provoke a time stamp warning.
+: | gzip --no-name > k || fail=1
+
 Exit $fail