1c3af89309
Copy from Archiving/zlib based on submit request 25075 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/25075 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=13
26 lines
811 B
Diff
26 lines
811 B
Diff
Index: Makefile.in
|
|
===================================================================
|
|
--- Makefile.in.orig 2005-07-18 04:25:21.000000000 +0200
|
|
+++ Makefile.in 2009-11-24 17:22:25.561564000 +0100
|
|
@@ -59,13 +59,16 @@ all: example$(EXE) minigzip$(EXE)
|
|
check: test
|
|
test: all
|
|
@LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
|
|
- echo hello world | ./minigzip | ./minigzip -d || \
|
|
- echo ' *** minigzip test FAILED ***' ; \
|
|
+ ret=0; \
|
|
+ if ! echo hello world | ./minigzip | ./minigzip -d; then \
|
|
+ echo ' *** minigzip test FAILED ***'; ret=1; \
|
|
+ fi; \
|
|
if ./example; then \
|
|
echo ' *** zlib test OK ***'; \
|
|
else \
|
|
- echo ' *** zlib test FAILED ***'; \
|
|
- fi
|
|
+ echo ' *** zlib test FAILED ***'; ret=1; \
|
|
+ fi; \
|
|
+ exit $$ret
|
|
|
|
libz.a: $(OBJS) $(OBJA)
|
|
$(AR) $@ $(OBJS) $(OBJA)
|