Re: [PATCH] gdb/testsuite/gdb.rocm: Fix incorrect use of continue N in multi-inferior-gpu.exp

Lancelot SIX
2023-10-17T11:21:52Z

Hi,

> diff --git a/gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp b/gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp
> index 18b4172ff09..958b70e6df1 100644
> --- a/gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp
> +++ b/gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp
> @@ -68,8 +68,10 @@ proc do_test {} {
> foreach thread $stopped_gpu_threads {
> set infnumber [lindex [split $thread .] 0]
> gdb_test "thread $thread" "Switching to thread.*"
> - gdb_test_multiple "continue $thread" "" {
> - -re "\\\[Inferior $infnumber \[^\n\r\]* exited normally\\]\r\n$::gdb_prompt " {
> + # Continue this thread, and consime the prompt
^
There is a typo here. I have fixed it locally.

Best,
Lancelot.

> + gdb_test "continue&" "" "continue GPU thread in $infnumber"
> + gdb_test_multiple "" "wait for inferior $infnumber" {
> + -re "\\\[Inferior $infnumber \[^\n\r\]* exited normally\\\]\r\n" {
> pass $gdb_test_name
> }
> }