X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fkeep;h=da8177679245bccfbb4c6fe0ea79b699390a78fe;hb=92249085071a973e2c0621b0415b93d2e48bb00d;hp=b2bbcd326a63e6acad5e1d3e38f11cef1eb9075c;hpb=d738e90e8360e101b94fca8c79147f59565f62d8;p=debian%2Fgzip
diff --git a/tests/keep b/tests/keep
index b2bbcd3..da81776 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-2018 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
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
+# along with this program. If not, see .
# limit so don't run it by default.
. "${srcdir=.}/init.sh"; path_prepend_ ..
@@ -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