Skip to content

Commit 99d603e

Browse files
committed
gdb/testsuite/gdb.rocm: Fix incorrect use of continue N in multi-inferior-gpu.exp
The gdb.rocm/multi-inferior-gpu.exp testcase uses a "continue $thread" command, but this is incorrect. If "continue" is given an argument, it sets the ignore count of the breakpoint the thread stopped at. For this testcase it does not really matter since the breakpoint is not meant to be hit anymore, so whatever the ignore count is won't influence the outcome of the test. It is worth fixing nevertheless. Change-Id: I0eb674d5529cdeb9e808b74870a29b6077265737 Approved-By: Simon Marchi <[email protected]>
1 parent 1c37b30 commit 99d603e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ proc do_test {} {
6868
foreach thread $stopped_gpu_threads {
6969
set infnumber [lindex [split $thread .] 0]
7070
gdb_test "thread $thread" "Switching to thread.*"
71-
gdb_test_multiple "continue $thread" "" {
71+
gdb_test_multiple "continue" "continue inferior $infnumber" {
7272
-re "\\\[Inferior $infnumber \[^\n\r\]* exited normally\\]\r\n$::gdb_prompt " {
7373
pass $gdb_test_name
7474
}

0 commit comments

Comments
 (0)