Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PUSHED] gdb/testsuite: avoid PID in test name
@ 2026-06-16 19:56 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2026-06-16 19:56 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

In gdb.python/py-inf-exited-at-exit.exp, switch to using gdb_attach
proc when attaching in order to avoid including the process-id in the
test name.

There should be no change to what is being tested after this commit.
---
 gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp
index 820858bd75d..3b6764abff7 100644
--- a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp
+++ b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.exp
@@ -122,7 +122,10 @@ proc_with_prefix check_with_attach {} {
 
     gdb_breakpoint [gdb_get_line_number "Break here."]
 
-    gdb_test "attach $testpid"
+    if { ![gdb_attach $testpid] } {
+	kill_wait_spawned_process $test_spawn_id
+	return
+    }
 
     gdb_continue_to_breakpoint "continue to b/p in foo"
 

base-commit: ada409879cc393c4cf633efe3d7afb716523f6be
-- 
2.25.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-16 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 19:56 [PUSHED] gdb/testsuite: avoid PID in test name Andrew Burgess

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