X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftimestamp;h=141c1d4dcc029e2d851f3d8dfdad029f08d871bc;hb=fa0feeca560a412d513696aca15e41e755c62254;hp=c488760aa832c92219e386ccafbdccdc58042004;hpb=51dee92f25d476f28bf126159ee428c7b916008c;p=debian%2Fgzip diff --git a/tests/timestamp b/tests/timestamp index c488760..141c1d4 100755 --- a/tests/timestamp +++ b/tests/timestamp @@ -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