From: Guillem Jover Date: Sun, 6 Aug 2023 18:56:10 +0000 (+0200) Subject: [PATCH libaio 04/16] build: Remove all test artifacts on clean X-Git-Tag: archive/raspbian/0.3.113-5+rpi1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=661878f2f1428d454af8495e5f97f1f114844abf;p=libaio.git [PATCH libaio 04/16] build: Remove all test artifacts on clean We create these artifacts when running the test suite, so should remove them when running the clean target. Reported-by: Lucas Nussbaum Signed-off-by: Guillem Jover Gbp-Pq: Name 0004-build-Remove-all-test-artifacts-on-clean.patch --- diff --git a/harness/Makefile b/harness/Makefile index 8cb27fa..ae4e45e 100644 --- a/harness/Makefile +++ b/harness/Makefile @@ -27,7 +27,9 @@ $(PROGS): %.p: %.t $(HARNESS_SRCS) $(CC) $(MK_CPPFLAGS) $(MK_CFLAGS) -DTEST_NAME=\"$<\" -o $@ $(MK_LDFLAGS) clean: - rm -f $(PROGS) *.o runtests.out rofile wofile rwfile + rm -f $(PROGS) *.o runtests.out tempfile testfile + rm -f testdir/rofile testdir/wofile testdir/rwfile + rmdir testdir || true .PHONY: