From 48f50b100b1dbdb884b210d2bfaa53c4ea7f7ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 27 Aug 2026 10:40:59 +0300 Subject: [PATCH] test: Ignore failures to remove the output file in some cases When running tests on Windows with busybox-w32 as shell, removing the output log file for the stacksmash-asan testcase fails like this occasionally: rm: can't remove 'log1-stacksmash-asan': Permission denied This only seems to happen with the i686 build of busybox-w32, but happens for the stacksmash-asan test built as either i686 or x86_64. (If running run-test.sh repeatedly, it seems like the issue either happens right away on the first iteration, or doesn't happen at all.) Avoid breaking builds by simply making it ignore errors from this particular "rm" command. --- test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 0c66c2b..f641615 100644 --- a/test/Makefile +++ b/test/Makefile @@ -351,7 +351,7 @@ $(FAILURE_TEST_TARGETS): .failtested.%$(EXEEXT): %$(EXEEXT) .copied.%$(EXEEXT) $ exit 1; \ ;; \ esac; \ - rm -f $$OUT; \ + rm -f $$OUT || true; \ fi @touch $@