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

Jan Beulich via Binutils-cvs <[email protected]>
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6d79eef84fdabf9805325729737daeb43258f97c

commit 6d79eef84fdabf9805325729737daeb43258f97c
Author: Jan Beulich <[email protected]>
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 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.