Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 1/3] [gdb/testsuite] Remove superfluous test-case cleanup
Date: Tue, 24 Nov 2026 15:05:22 +0100	[thread overview]
Message-ID: <20261124140524.296887-1-tdevries@suse.de> (raw)

In gdb.debuginfod/crc_mismatch.exp we have:
...
 # Spare debug files may confuse testsuite runs in the future.
 remote_exec build "rm -f $debugfile"
...

The cleanup is 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)

See proc clean_standard_output_dir in lib/gdb.exp for more details.

Remove the superfluous cleanup.

Likewise in two other test-cases.
---
 gdb/testsuite/gdb.base/sepdebug.exp                        | 6 ------
 gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp | 2 --
 gdb/testsuite/gdb.debuginfod/crc_mismatch.exp              | 2 --
 3 files changed, 10 deletions(-)

diff --git a/gdb/testsuite/gdb.base/sepdebug.exp b/gdb/testsuite/gdb.base/sepdebug.exp
index 1ada019ea43..0495f50b5f3 100644
--- a/gdb/testsuite/gdb.base/sepdebug.exp
+++ b/gdb/testsuite/gdb.base/sepdebug.exp
@@ -667,9 +667,6 @@ if {[build_executable sepdebug.exp sepdebug2 sepdebug2.c debug] != -1
 set build_id_debug_filename [build_id_debug_filename_get $binfile$EXEEXT]
 if {![string compare $build_id_debug_filename ""]} {
     unsupported "build-id is not supported by the compiler"
-
-    # Spare debug files may confuse testsuite runs in the future.
-    remote_exec build "rm -f $debugfile"
 } else {
     set build_id_debugself_filename [build_id_debug_filename_get $debugfile]
     set test "build-id support by binutils"
@@ -693,7 +690,4 @@ if {![string compare $build_id_debug_filename ""]} {
     # location as the executable file.
 
     test_different_dir multiple-dirs "/doesnotexist:[standard_output_file {}]" $xfail
-
-    # Spare debug files may confuse testsuite runs in the future.
-    remote_exec build "rm -f [standard_output_file ${build_id_debug_filename}]"
 }
diff --git a/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp b/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp
index 362686c87a4..972634bc7c5 100644
--- a/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp
+++ b/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp
@@ -154,5 +154,3 @@ with_debuginfod_env $cache {
 }
 
 stop_debuginfod
-# Spare debug files may confuse testsuite runs in the future.
-remote_exec build "rm -f $debugfile"
diff --git a/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp b/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp
index 9bf65c4e0e6..9ba70f5aa89 100644
--- a/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp
+++ b/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp
@@ -134,5 +134,3 @@ with_debuginfod_env $cache {
 }
 
 stop_debuginfod
-# Spare debug files may confuse testsuite runs in the future.
-remote_exec build "rm -f $debugfile"

base-commit: 3852fc6542b354956bdc746bde66b951718ad2cd
-- 
2.51.0


             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 Tom de Vries [this message]
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 ` [pushed 3/3] [gdb/testsuite] Remove superfluous test-case cleanup in gdb.asm/asm-source.exp Tom de Vries

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-1-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