From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 3/3] [gdb/testsuite] Remove superfluous test-case cleanup in gdb.asm/asm-source.exp
Date: Tue, 24 Nov 2026 15:05:24 +0100 [thread overview]
Message-ID: <20261124140524.296887-3-tdevries@suse.de> (raw)
In-Reply-To: <20261124140524.296887-1-tdevries@suse.de>
In test-case gdb.asm/asm-source.exp we have:
...
remote_exec build "rm -f $arch_inc"
remote_download build ${srcdir}/${subdir}/${asm-arch}.inc $arch_inc
remote_exec build "rm -f $note_inc"
remote_download build ${srcdir}/${subdir}/${asm-note}.inc $note_inc
...
remote_exec build "rm -f $arch_inc"
remote_exec build "rm -f $note_inc"
...
The first two rm commands are superfluous, because when starting the
test-case, test-case directories are either:
- empty (serial case)
- empty apart from gdb.log and gdb.sum (parallel case)
The last two remove some small files that might actually be interesting to
look at after running the test-case.
Remove all four rm commands.
---
gdb/testsuite/gdb.asm/asm-source.exp | 5 -----
1 file changed, 5 deletions(-)
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index e32a2c6c5cc..8912cc8e3d1 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -198,9 +198,7 @@ standard_testfile asmsrc1.s asmsrc2.s
set arch_inc [standard_output_file arch.inc]
set note_inc [standard_output_file note.inc]
-remote_exec build "rm -f $arch_inc"
remote_download build ${srcdir}/${subdir}/${asm-arch}.inc $arch_inc
-remote_exec build "rm -f $note_inc"
remote_download build ${srcdir}/${subdir}/${asm-note}.inc $note_inc
gdb_remote_download host $arch_inc
@@ -471,6 +469,3 @@ test_dis "disassem &staticvar, (int *) &staticvar+1" "staticvar"
# See if we can look at a static function
gdb_test "disassem foostatic" ".*<\\+0>:.*End of assembler dump." \
"look at static function"
-
-remote_exec build "rm -f $arch_inc"
-remote_exec build "rm -f $note_inc"
--
2.51.0
prev parent reply other threads:[~2026-11-24 14:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 14:05 [pushed 1/3] [gdb/testsuite] Remove superfluous test-case cleanup Tom de Vries
2026-11-24 14:05 ` [pushed 2/3] [gdb/testsuite] Remove dead code in gdb.base/ending-run.exp Tom de Vries
2026-11-24 14:05 ` Tom de Vries [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124140524.296887-3-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox