GNU bug report logs -
#23768
[PATCH] tests: adjust to ignore gzip 1.8+ warnings
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Tue, 14 Jun 2016 07:50:01 UTC
Severity: normal
Tags: fixed, patch
Merged with 20132
Done: Mathieu Lirzin <mthl <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This fixes a test failure when testing with gzip 1.8.
* t/distcheck-no-prefix-or-srcdir-override.sh: Instead of testing for an
empty 'stderr' file, check for a zero-line file once gzip warnings have
been removed.
---
t/distcheck-no-prefix-or-srcdir-override.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/t/distcheck-no-prefix-or-srcdir-override.sh b/t/distcheck-no-prefix-or-srcdir-override.sh
index bef334b..f9d05e1 100644
--- a/t/distcheck-no-prefix-or-srcdir-override.sh
+++ b/t/distcheck-no-prefix-or-srcdir-override.sh
@@ -49,7 +49,11 @@ grep "cannot find sources.* in foobar" stderr || exit 99
./configure
run_make -E -O distcheck
-test ! -s stderr
+
+# Gzip 1.8+ emits warnings like "gzip: warning: GZIP environment
+# variable is deprecated"; filter them out.
+test `grep -v '^gzip: warning' stderr | wc -l` -eq 0
+
# Sanity check: the flags have been actually seen.
$PERL -e 'undef $/; $_ = <>; s/ \\\n/ /g; print;' <stdout >t
grep '/configure .* --srcdir am-src' t || exit 99
--
2.8.3
This bug report was last modified 7 years and 312 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.