[DTrace-devel] [PATCH v2] test: fix leak of $testerr.tmp

Nick Alcock nick.alcock at oracle.com
Wed Mar 20 10:48:56 UTC 2024


Nothing ever deletes it, so thousands of them build up in the
$tmpdir.  Trivial fix.

Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
---
 runtest.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/runtest.sh b/runtest.sh
index 35d5006978469..042da00425575 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -1316,6 +1316,7 @@ for dt in $dtrace; do
 
             # Account for an error message change in CTF
             sed -e 's/Invalid member name/Member name not found/' $testerr.tmp > $testerr
+            rm -f $testerr.tmp
 
             # Note if dtrace mentions running out of memory at any point.
             # If it does, this test quietly becomes an expected failure
-- 
2.44.0.273.ge0bd14271f




More information about the DTrace-devel mailing list