diff --git a/Makefile b/Makefile index 6af8e51..502f3cc 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ CONFIGURE = $(SRC_DIR)/ COV_DIR=$(OUT)/coverage/ APP_DIR=$(SRC_DIR)/apps/ CC=gcc +SHELL=/bin/bash CCFLAGS = -Wall -Werror CCFLAGS += -std=c99 -D_POSIX_C_SOURCE=200809L @@ -58,7 +59,7 @@ define run_tests = @for i in $(TESTS); do \ echo " TEST $$i"; \ $$i | sed 's/^/ /'; \ - if [ $$? -ne 0 ]; then \ + if [ $${PIPESTATUS[0]} -ne 0 ]; then \ exit 1; \ fi; \ done;