From f2e469a498b5ba92da123942887f9c57087f3cb6 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 11 Feb 2017 17:56:01 +0100 Subject: [PATCH] Make should immediately stop whenever a test failed Make should stop and exit with a non zero status code whenever a test (in the target "test") fails. Without this patch, make executed all the tests (even when one of them failed) and exited with a status code of 0, which is not what we want. Signed-off-by: Sebastien GODARD --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index ce7d666..472477a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -579,7 +579,7 @@ unit: @cat $(TESTDIR)/$(X) | $(TESTRUN) test: all - @$(foreach x, $(TESTLIST), $(MAKE) X=$x unit;) + @$(foreach x, $(TESTLIST), $(MAKE) X=$x unit || exit;) clean: rm -f sadc sar sadf iostat tapestat mpstat pidstat cifsiostat *.o *.a core TAGS tests/*.tmp -- 2.40.0