テストを、MacやCygwinでも成功するように修正
[YACASL2.git] / test / integration / casl2 / opt_opterr / Makefile
index 5d0a565..87c8b6a 100644 (file)
@@ -2,7 +2,9 @@
 include ../CMD.mk               # YACASL2DIR, CASL2
 include ../opt_s/CMD.mk         # ASDIR, ASFILE
 CASL2FLAG = -z
+SETBYOTHER = 0
 CMD = $(CASL2) $(CASL2FLAG) $(ASFILE)
 include ../TEST.mk
-0.txt 1.txt:: $(CASL2) $(ASFILE)
-       @if test -s $(ERRFILE); then tail -1 err.txt >$@; else rm -f $(ERRFILE); fi
+0.txt 1.txt: $(CASL2) $(ASFILE)
+       @$(CMD) >>$@ 2>err.txt; \
+     if test -s err.txt; then tail -1 err.txt >>$@; else rm -f err.txt; fi