From 8c6a031cdba41066395eb42d67e43f454906d2f3 Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Tue, 23 Jul 2019 10:57:43 +0200 Subject: [PATCH] tests/unit: fix inconsistent FAIL test failures Use make's .DELETE_ON_ERROR special target to make sure we don't have any .OUTPUT.o leftovers for failed tests. Fixes: #999 Signed-off-by: Artem Savkov --- test/unit/Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/Makefile.include b/test/unit/Makefile.include index d542a85c9..062823cc6 100644 --- a/test/unit/Makefile.include +++ b/test/unit/Makefile.include @@ -36,6 +36,7 @@ define check_all = $(if $(findstring NOSTRIP,$(1)), , $(call check_stripped,$(1))) endef +.DELETE_ON_ERROR: %.$(EXT_OUTPUT) all: $(TARGETS) $(TEST_TARGETS)