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-0dff7051ff02
master
Damien Doligez 2013-04-18 13:55:15 +00:00
parent 9e2b8f8913
commit 0125138f56
1 changed files with 2 additions and 2 deletions

View File

@ -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; \