From: Scott Worley Date: Tue, 29 Dec 2015 21:57:36 +0000 (-0800) Subject: Pass through the test's actual exit code X-Git-Url: http://git.scottworley.com/slidingtile/commitdiff_plain/d4aebc72dbc676b1b1ce7eeabedf3840e9c6aaf0?ds=sidebyside Pass through the test's actual exit code --- diff --git a/Makefile b/Makefile index 5994d06..450ffe8 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ TESTS=$(subst .cc,,$(TEST_SRCS)) all: $(MAIN) $(TESTS) test: $(TESTS) - for t in $(TESTS); do if ! ./$$t; then exit 1; fi ;done + for t in $(TESTS); do if ./$$t; then :; else exit $$?; fi ;done clean: rm -f *.o $(MAIN) $(TESTS) Makefile.bak