]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Properly bail out when a test fails.
authorDaniel Axtens <dja@axtens.net>
Wed, 29 Apr 2015 05:35:04 +0000 (15:35 +1000)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 28 Apr 2016 11:59:26 +0000 (13:59 +0200)
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 <dja@axtens.net>
test/Makefile.in

index 44db06349d293fa42d0f4c2e7bfe1f95fcc4ba54..63895c4b09a61ccb4e835c504cfb39c1dc7249ed 100644 (file)
@@ -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