[PATCH 4/4] binutils/testsuite: don't leave temporary files in main dir

Jan Beulich jbeulich@suse.com
Tue Mar 3 15:46:01 GMT 2026


Leaving files in tmpdir/ is generally okay (often intended and helpful),
but the main directory really shouldn't be cluttered.

--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -269,6 +269,9 @@ if [is_remote host] {
 
 set got [binutils_run $OBJCOPY "-I binary -i 4 -b 0 --interleave-width 2 ${sequence_file} ${copyfile}"]
 
+file delete sequence_file
+remote_file host delete $sequence_file
+
 if ![string equal "" $got] then {
     fail "objcopy -i --interleave-width"
 } else {



More information about the Binutils mailing list