]> git.scottworley.com Git - slidingtile/commitdiff
Pass through the test's actual exit code
authorScott Worley <scottworley@scottworley.com>
Tue, 29 Dec 2015 21:57:36 +0000 (13:57 -0800)
committerScott Worley <scottworley@scottworley.com>
Tue, 29 Dec 2015 21:57:36 +0000 (13:57 -0800)
Makefile

index 5994d06dc0b9f0f54be1c464b28f7b94996d10b4..450ffe8ee93b8f736d5cc376bce027c136a5c681 100644 (file)
--- 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