From 5a5493fefb9048a7362e3bcb629cc363df529422 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 10 Oct 2009 15:32:10 -0700 Subject: tests: create a bad exit code by default In case the test doesn't complete and somehow doesn't write the exit code, we always want to start with one. --- t/GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/GNUmakefile b/t/GNUmakefile index e957b66..934c179 100644 --- a/t/GNUmakefile +++ b/t/GNUmakefile @@ -29,7 +29,7 @@ t_log = $(t_pfx).log t_run = $(TRACER) $(SHELL) $(SH_TEST_OPTS) $@ # prefix stdout messages with ':', and stderr messages with '!' -t_wrap = ( ( ( $(RM) $(t_code); \ +t_wrap = ( ( ( echo 42 > $(t_code); \ $(t_run); \ echo $$? > $(t_code) ) \ | sed 's/^/$(pfx):/' 1>&3 ) 2>&1 \ -- cgit v1.2.3-24-ge0c7