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

Nick Alcock nick.alcock at oracle.com
Mon Mar 11 12:03:30 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>
---
 runtest.sh | 1 +
 1 file changed, 1 insertion(+)

Not for this release, obviously!

diff --git a/runtest.sh b/runtest.sh
index 35d5006978469..a9320699bfbab 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.40.1




More information about the DTrace-devel mailing list