]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove pid from test name in gcore-memory-usage.exp
authorTom Tromey <tom@tromey.com>
Mon, 10 Mar 2025 21:11:25 +0000 (15:11 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 10 Mar 2025 21:11:25 +0000 (15:11 -0600)
The new gcore-memory-usage.exp test puts a PID into a test case name,
causing spurious comparison failures.  This patch changes the test
name to avoid this.

gdb/testsuite/gdb.base/gcore-memory-usage.exp

index db7f270a5e84ab672c071229930f4161764fb5c9..bd041f2d1a81788f1a708ea97f60b4b288003309 100644 (file)
@@ -57,7 +57,7 @@ proc run_test {megs} {
        set inferior_pid [spawn_id_get_pid $inferior_spawn_id]
        set gdb_pid [exp_pid -i [board_info host fileid]]
 
-       gdb_test "attach $inferior_pid" "Attaching to.*"
+       gdb_test "attach $inferior_pid" "Attaching to.*" attach
        set line [gdb_get_line_number "TAG: BREAK HERE" $::testfile.c]
        gdb_breakpoint "${::srcfile}:$line" "break at to known line"
        gdb_continue_to_breakpoint "continue to known line"