From: Tom Tromey Date: Mon, 10 Mar 2025 21:11:25 +0000 (-0600) Subject: Remove pid from test name in gcore-memory-usage.exp X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d03f69e74638f0515a0fb391ca1c74764dc79b9a;p=thirdparty%2Fbinutils-gdb.git Remove pid from test name in gcore-memory-usage.exp 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. --- diff --git a/gdb/testsuite/gdb.base/gcore-memory-usage.exp b/gdb/testsuite/gdb.base/gcore-memory-usage.exp index db7f270a5e8..bd041f2d1a8 100644 --- a/gdb/testsuite/gdb.base/gcore-memory-usage.exp +++ b/gdb/testsuite/gdb.base/gcore-memory-usage.exp @@ -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"