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 <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2019-07-23 10:57:43 +02:00
parent 535e917679
commit 8c6a031cdb

View File

@ -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)