zdiff would exit 2 (error) rather than 1 for differences
commit98149fd7d5ed21e47b375d7dc109881a6ac3b4d1
authorJim Meyering <meyering@redhat.com>
Fri, 9 Oct 2009 10:37:05 +0000 (9 12:37 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 9 Oct 2009 13:22:09 +0000 (9 15:22 +0200)
tree0434f6c024475a485b7266b1d751515bfcb12641
parentc2ebedad623c8d44b1660a6827edbba06df503b7
zdiff would exit 2 (error) rather than 1 for differences

* zdiff.in: Save and restore cmp's exit status around a case
statement that would otherwise clobber its value.
* NEWS (Bug fixes): Mention it.
* tests/zdiff: New test; exercise both bugs.
* tests/test-lib.sh: New file.  From coreutils.
* Makefile.am (EXTRA_DIST): Add tests/test-lib.sh.
(TESTS): Add tests/zdiff.
(TESTS_ENVIRONMENT): Define.  From coreutils.
(EXTRA_DIST): Append all $(TESTS).
.gitignore
Makefile.am
NEWS
tests/test-lib.sh [new file with mode: 0644]
tests/zdiff [new file with mode: 0755]
zdiff.in