]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
binutils/testsuite: don't leave temporary files in main dir
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Mar 2026 09:32:42 +0000 (10:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Mar 2026 09:32:42 +0000 (10:32 +0100)
Leaving files in tmpdir/ is generally okay (often intended and helpful),
but the main directory really shouldn't be cluttered.

binutils/testsuite/binutils-all/objcopy.exp

index 3ad92256610f826054d58bfb375f4438a8ef9887..8d5b1564a3c7e56b148f4f63f64d8ff2397867c4 100644 (file)
@@ -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 {