From 620354bcae2876597c08192a5b4100ddaaf8921f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=CE=88=CE=BB=CE=BB=CE=B5=CE=BD=20=CE=95=CE=BC=CE=AF=CE=BB?=
 =?UTF-8?q?=CE=B9=CE=B1=20=CE=86=CE=BD=CE=BD=CE=B1=20Zscheile?=
 <fogti+devel@posteo.net>
Date: Sat, 5 Dec 2026 22:03:12 +0200
Subject: [PATCH] tests/*: Fix warnings from rm

Running tests yields the following (expected on fresh runs) warnings, this commit silences that.

```
rm: cannot remove 'project-output.ipkg': No such file or directory
idris2/literate/literate017: success                             00.906s
rm: cannot remove 'test.buf': No such file or directory
node/node004: success                                            01.424s
rm: cannot remove 'testout.txt': No such file or directory
node/node018: success                                            01.393s
rm: cannot remove 'Main.cases': No such file or directory
rm: cannot remove 'Main.cases': No such file or directory
codegen/builtin001: success                                      00.862s
codegen/con001: success                                          00.874s
```

Downstream issue: https://bugs.gentoo.org/960339
---
 CONTRIBUTORS                          | 1 +
 tests/codegen/builtin001/run          | 2 +-
 tests/codegen/con001/run              | 2 +-
 tests/idris2/literate/literate017/run | 2 +-
 tests/node/node004/run                | 2 +-
 tests/node/node018/run                | 2 +-
 6 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index e505a0a1da8..19b9e9ab582 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -29,6 +29,7 @@ Danylo Lapirov
 David Smith
 Denis Buzdalov
 Edwin Brady
+Ellen Emilia Anna Zscheile
 Ellis Kesterton
 Ethan Rooke
 Fabián Heredia Montiel
diff --git a/tests/codegen/builtin001/run b/tests/codegen/builtin001/run
index dd59614a1bf..14c6bc97118 100755
--- a/tests/codegen/builtin001/run
+++ b/tests/codegen/builtin001/run
@@ -1,5 +1,5 @@
 . ../../testutils.sh
-rm Main.cases
+rm -f Main.cases
 
 idris2 --dumpcases Main.cases -o Main Main.idr
 
diff --git a/tests/codegen/con001/run b/tests/codegen/con001/run
index f1866a326c2..75fadd6c25b 100755
--- a/tests/codegen/con001/run
+++ b/tests/codegen/con001/run
@@ -1,5 +1,5 @@
 . ../../testutils.sh
-rm Main.cases
+rm -f Main.cases
 
 idris2 --dumpcases Main.cases -o Main Main.idr
 
diff --git a/tests/idris2/literate/literate017/run b/tests/idris2/literate/literate017/run
index a6da6d40c70..cf11a07b72a 100755
--- a/tests/idris2/literate/literate017/run
+++ b/tests/idris2/literate/literate017/run
@@ -1,6 +1,6 @@
 . ../../../testutils.sh
 
-rm project-output.ipkg
+rm -f project-output.ipkg
 
 idris2 --init project-output.ipkg < input
 diff project-output.ipkg project-expected.ipkg
diff --git a/tests/node/node004/run b/tests/node/node004/run
index ed530ac290e..dd54cdd4ab4 100755
--- a/tests/node/node004/run
+++ b/tests/node/node004/run
@@ -1,5 +1,5 @@
 . ../../testutils.sh
 
-rm test.buf
+rm -f test.buf
 
 run Buffer.idr
diff --git a/tests/node/node018/run b/tests/node/node018/run
index 2443212169e..a496e3a23f4 100755
--- a/tests/node/node018/run
+++ b/tests/node/node018/run
@@ -1,5 +1,5 @@
 . ../../testutils.sh
 
-rm testout.txt
+rm -f testout.txt
 
 run File.idr
