* [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
* [pushed 2/3] [gdb/testsuite] Remove dead code in gdb.base/ending-run.exp
2026-11-24 14:05 [pushed 1/3] [gdb/testsuite] Remove superfluous test-case cleanup Tom de Vries
@ 2026-11-24 14:05 ` 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
1 sibling, 0 replies; 3+ messages in thread
From: Tom de Vries @ 2026-11-24 14:05 UTC (permalink / raw)
To: gdb-patches
Test-case gdb.base/ending-run.exp ends in:
...
#remote_exec build "rm -f ${binfile}"
...
There's no point in uncommenting it, nor in keeping it as is.
Remove it.
---
gdb/testsuite/gdb.base/ending-run.exp | 2 --
1 file changed, 2 deletions(-)
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index c8d3672cd87..b35347c0afa 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -288,5 +288,3 @@ if {!$use_gdb_stub
}
set timeout $old_timeout
-
-#remote_exec build "rm -f ${binfile}"
--
2.51.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pushed 3/3] [gdb/testsuite] Remove superfluous test-case cleanup in gdb.asm/asm-source.exp
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
1 sibling, 0 replies; 3+ messages in thread
From: Tom de Vries @ 2026-11-24 14:05 UTC (permalink / raw)
To: gdb-patches
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
^ 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