]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
testheaders.sh: force-remove temporary files (#1487)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Sat, 23 Sep 2023 16:16:42 +0000 (16:16 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 23 Sep 2023 16:16:50 +0000 (16:16 +0000)
At high levels of build parallelism on systems using GNU coreutils,
sometimes "make check" hangs on a request to confirm
removal of a read-only file temporary file.

Force-remove temporary test files to ensure removal is noniteractive.

test-suite/testheaders.sh

index 2bb55112d3e4efd7aac8473c428f5beb9d3502ba..86edf4ea9c1da44ebd2a59cf6d5a6935bbeee58a 100755 (executable)
@@ -41,7 +41,7 @@ EOF
             echo "Fail."
             exitCode=1
         fi
-        rm $t.cc $t.o
+        rm -f $t.cc $t.o
     fi
     test $exitCode -eq 0 || break
 done