From: Daniel Axtens Date: Wed, 29 Apr 2015 05:35:04 +0000 (+1000) Subject: Properly bail out when a test fails. X-Git-Tag: 1.9.9-b1~782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fc89eabc3107a99509ffcf4f420c4ad3f7d6d6b;p=thirdparty%2Fzlib-ng.git Properly bail out when a test fails. At an earlier point in development, shared libs were failing on Travis but the overall build was succeeding. Stop that from happening by bailing out harder. Signed-off-by: Daniel Axtens --- diff --git a/test/Makefile.in b/test/Makefile.in index 44db06349..63895c4b0 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -19,7 +19,7 @@ teststatic: if echo hello world | ../minigzip | ../minigzip -d && ../example $$TMPST ; then \ echo ' *** zlib test OK ***'; \ else \ - echo ' *** zlib test FAILED ***'; false; \ + echo ' *** zlib test FAILED ***'; exit 1; \ fi; \ rm -f $$TMPST @@ -32,7 +32,7 @@ testshared: if echo hello world | ../minigzipsh | ../minigzipsh -d && ../examplesh $$TMPSH; then \ echo ' *** zlib shared test OK ***'; \ else \ - echo ' *** zlib shared test FAILED ***'; false; \ + echo ' *** zlib shared test FAILED ***'; exit 1; \ fi; \ rm -f $$TMPSH @@ -41,7 +41,7 @@ test64: if echo hello world | ../minigzip64 | ../minigzip64 -d && ../example64 $$TMP64; then \ echo ' *** zlib 64-bit test OK ***'; \ else \ - echo ' *** zlib 64-bit test FAILED ***'; false; \ + echo ' *** zlib 64-bit test FAILED ***'; exit 1; \ fi; \ rm -f $$TMP64