cvsdist cac4362
--- zlib-1.1.4/Makefile.in.jj	Mon Mar 11 08:58:30 2002
cvsdist cac4362
+++ zlib-1.1.4/Makefile.in	Fri Apr 26 06:53:12 2002
cvsdist cac4362
@@ -62,13 +62,16 @@ all: example minigzip
cvsdist cac4362
 
cvsdist cac4362
 test: all
cvsdist cac4362
 	@LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
cvsdist cac4362
-	echo hello world | ./minigzip | ./minigzip -d || \
cvsdist cac4362
-	  echo '		*** minigzip test FAILED ***' ; \
cvsdist cac4362
+	ret=0; \
cvsdist cac4362
+	if ! echo hello world | ./minigzip | ./minigzip -d; then \
cvsdist cac4362
+	  echo '		*** minigzip test FAILED ***'; ret=1; \
cvsdist cac4362
+	fi; \
cvsdist cac4362
 	if ./example; then \
cvsdist cac4362
 	  echo '		*** zlib test OK ***'; \
cvsdist cac4362
 	else \
cvsdist cac4362
-	  echo '		*** zlib test FAILED ***'; \
cvsdist cac4362
-	fi
cvsdist cac4362
+	  echo '		*** zlib test FAILED ***'; ret=1; \
cvsdist cac4362
+	fi; \
cvsdist cac4362
+	exit $$ret
cvsdist cac4362
 
cvsdist cac4362
 libz.a: $(OBJS) $(OBJA)
cvsdist cac4362
 	$(AR) $@ $(OBJS) $(OBJA)