Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed 1/3] [gdb/testsuite] Remove superfluous test-case cleanup
@ 2026-11-24 14:05 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 ` [pushed 3/3] [gdb/testsuite] Remove superfluous test-case cleanup in gdb.asm/asm-source.exp Tom de Vries
  0 siblings, 2 replies; 3+ messages in thread
From: Tom de Vries @ 2026-11-24 14:05 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-24 14:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [pushed 3/3] [gdb/testsuite] Remove superfluous test-case cleanup in gdb.asm/asm-source.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox