[binutils-gdb] binutils/testsuite: don't leave temporary files in main dir

Jan Beulich jbeulich@sourceware.org
Fri Mar 13 09:33:17 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6d79eef84fdabf9805325729737daeb43258f97c

commit 6d79eef84fdabf9805325729737daeb43258f97c
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Mar 13 10:32:42 2026 +0100

    binutils/testsuite: don't leave temporary files in main dir
    
    Leaving files in tmpdir/ is generally okay (often intended and helpful),
    but the main directory really shouldn't be cluttered.

Diff:
---
 binutils/testsuite/binutils-all/objcopy.exp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 3ad92256610..8d5b1564a3c 100644
--- 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-cvs mailing list