Under BSD, subshells apparently inherit the -e setting.
In any case, it's better to use "|| true" to suppress an error result. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13561 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
9e2b8f8913
commit
0125138f56
|
@ -27,13 +27,13 @@ run:
|
|||
@ulimit -s 1024; \
|
||||
for f in *.bytecode; do \
|
||||
printf " ... testing '$$f':"; \
|
||||
(./$$f > $$f.result 2>&1; true); \
|
||||
(./$$f > $$f.result 2>&1 || true); \
|
||||
$(DIFF) $$f.reference $$f.result > /dev/null || (echo " => failed" &&\
|
||||
exit 1) && echo " => passed"; \
|
||||
fn=`basename $$f bytecode`native; \
|
||||
if [ -z "$(BYTECODE_ONLY)" -a -f "$$fn" ]; then \
|
||||
printf " ... testing '$$fn':"; \
|
||||
(./$$fn > $$fn.result 2>&1; true); \
|
||||
(./$$fn > $$fn.result 2>&1 || true); \
|
||||
$(DIFF) $$fn.reference $$fn.result > /dev/null || (echo " => failed\
|
||||
" && exit 1) && echo " => passed"; \
|
||||
fi; \
|
||||
|
|
Loading…
Reference in New Issue