X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fkeep;fp=tests%2Fkeep;h=105d43e643d015655f7a779d43b942a189a80b45;hb=20fcfc81ece044b8b0a6768ec6cf47be4e22a2e6;hp=b2bbcd326a63e6acad5e1d3e38f11cef1eb9075c;hpb=d57728a6ca2413a7c564d8b7bb13d9e5a5a180f3;p=debian%2Fgzip diff --git a/tests/keep b/tests/keep index b2bbcd3..105d43e 100755 --- a/tests/keep +++ b/tests/keep @@ -1,7 +1,7 @@ #!/bin/sh # Exercise the --keep option. -# Copyright (C) 2013 Free Software Foundation, Inc. +# Copyright (C) 2013-2016 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -41,4 +41,11 @@ for k in --keep ''; do rm -f in.gz || fail=1 done +cp orig in || framework_failure_ +log=$(gzip -kv in 2>&1) || fail=1 +case $log in + *'created in.gz'*) ;; + *) fail=1;; +esac + Exit $fail