From: Jim Meyering Date: Sun, 16 Aug 2009 15:06:23 +0000 (+0200) Subject: tests: add a test for just-fixed bug X-Git-Tag: v1.3.13~24 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e8c46a103fdc06a2075b9c391806758f2d491469;p=debian%2Fgzip tests: add a test for just-fixed bug * tests/hufts-segv.gz: New file, from bug report. * Makefile.am (EXTRA_DIST): Add tests/hufts-segv.gz. (check-local): Exercise the bug. --- diff --git a/.gitignore b/.gitignore index 785f8a7..1e8d851 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ *._bootmp* *.cache *.doc -*.gz *.lineno *.log *.o diff --git a/Makefile.am b/Makefile.am index 508d2c4..864342b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,6 +25,7 @@ man_MANS = gunzip.1 gzexe.1 gzip.1 \ EXTRA_DIST = $(ACINCLUDE_INPUTS) $(man_MANS) \ ChangeLog-2007 \ + tests/hufts-segv.gz \ algorithm.doc amiga/match.a amiga/Makefile.gcc amiga/Makefile.sasc \ amiga/tailor.c amiga/utime.h atari/Makefile.st crypt.h \ gunzip.in gzexe.in gzip.doc gzip.h lzw.h msdos/match.asm msdos/tailor.c \ @@ -92,6 +93,8 @@ check-local: $(FILES_TO_CHECK) $(bin_PROGRAMS) gzip.doc.gz for file in $(FILES_TO_CHECK); do \ ./gzip -cv -- "$$file" | ./gzip -d | cmp - "$$file" || exit 1; \ done + ./gzip -dc $(srcdir)/tests/hufts-segv.gz > /dev/null 2>&1; \ + test $$? = 1 @echo 'Test succeeded.' install-exec-hook: remove-installed-links diff --git a/tests/hufts-segv.gz b/tests/hufts-segv.gz new file mode 100644 index 0000000..32cb2a2 Binary files /dev/null and b/tests/hufts-segv.gz differ