Make zlib's 'make check' actually fail if test fails

Upstream: https://github.com/madler/zlib/pull/225

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2017-02-11 12:14:33 -08:00
parent 57e1e7e742
commit 7dfae65ce9

View File

@ -0,0 +1,33 @@
'make check' should return with non-zero status
... if the test fails.
--- zlib-1.2.11/Makefile.in.orig 2017-02-11 12:00:37.768094420 -0800
+++ zlib-1.2.11/Makefile.in 2017-02-11 12:01:02.088399001 -0800
@@ -91,7 +91,7 @@
echo ' *** zlib test OK ***'; \
else \
echo ' *** zlib test FAILED ***'; false; \
- fi; \
+ fi
rm -f $$TMPST
testshared: shared
@@ -104,7 +104,7 @@
echo ' *** zlib shared test OK ***'; \
else \
echo ' *** zlib shared test FAILED ***'; false; \
- fi; \
+ fi
rm -f $$TMPSH
test64: all64
@@ -113,7 +113,7 @@
echo ' *** zlib 64-bit test OK ***'; \
else \
echo ' *** zlib 64-bit test FAILED ***'; false; \
- fi; \
+ fi
rm -f $$TMP64
infcover.o: $(SRCDIR)test/infcover.c $(SRCDIR)zlib.h zconf.h