X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Fports%2Fxa51%2Fspec.mk;h=1fb8a4d3cc2a966dd9ba1403e71d2ed27815fc09;hb=c9b59d8ffd825b492613f8ef6198b4ea8b84b860;hp=eb50f0195cc1c00a3224624f5c7de83ef74be317;hpb=206b7421b00197b98bfcb003687a2055f84cbf03;p=fw%2Fsdcc diff --git a/support/regression/ports/xa51/spec.mk b/support/regression/ports/xa51/spec.mk index eb50f019..1fb8a4d3 100755 --- a/support/regression/ports/xa51/spec.mk +++ b/support/regression/ports/xa51/spec.mk @@ -1,5 +1,9 @@ # Port specification for the xa51 port running with uCsim +ifndef DEV_NULL + DEV_NULL = /dev/null +endif + # path to uCsim SXA_A = $(top_builddir)sim/ucsim/xa.src/sxa SXA_B = $(top_builddir)bin/sxa @@ -29,7 +33,7 @@ $(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c # run simulator with 1 second timeout %.out: %$(EXEEXT) $(CASES_DIR)/timeout mkdir -p $(dir $@) - -$(CASES_DIR)/timeout 1 $(SXA) -S in=/dev/null,out=$@ $< < $(PORTS_DIR)/xa51/uCsim.cmd >/dev/null || \ + -$(CASES_DIR)/timeout 1 $(SXA) -S in=$(DEV_NULL),out=$@ $< < $(PORTS_DIR)/xa51/uCsim.cmd >/dev/null || \ echo -e --- FAIL: \"timeout, simulation killed\" in $(<:.ihx=.c)"\n"--- Summary: 1/1/1: timeout >> $@ -grep -n FAIL $@ /dev/null || true