From 1a633fb12544ef501fa05eef17a6a954f18319d0 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 2 Feb 2010 21:49:42 +0200 Subject: [PATCH] * update gtest.mk to actually abort when there's an error in the test cases --- gtest.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gtest.mk b/gtest.mk index 218d1332..a7afc955 100644 --- a/gtest.mk +++ b/gtest.mk @@ -17,11 +17,10 @@ TEST_PROGS= test: all $(TEST_PROGS) - @ test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS); \ - test -z "$(SUBDIRS)" || \ + @test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS) || exit $$?; \ + test -z "$(SUBDIRS)" || \ for subdir in $(SUBDIRS); do \ test "$$subdir" = "." || \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$? ; \ done - .PHONY: test