gdb fix PowerPC test gdb.arch/ppc-longdouble.exp

The test complains of duplicate tests.

DUPLICATE: gdb.arch/ppc-longdouble.exp: continue to breakpoint: return

The do_test calls gdb_continue_to_breakpoint "return".  The duplicates
are the result of calling do_test three times with different arguments.

This patch fixes the duplicate tests by adding $name to the
gdb_continue_to_breakpoint argument.

Patch tested on Power 10  ppc64le GNU/Linux, no duplicate tests reported,
no new regression errors.
This commit is contained in:
Carl Love 2021-11-18 00:08:18 +00:00
parent 7c80aab936
commit 2888fe8d19

View File

@ -39,7 +39,7 @@ proc do_test { name {opts {}} } {
# Run to the breakpoint at return.
gdb_breakpoint [gdb_get_line_number "return"]
gdb_continue_to_breakpoint "return"
gdb_continue_to_breakpoint "return test: $name"
# Print the value of ld
gdb_test "print ld" ".* = 1\\.375.*" "the value of ld is 1.375 ($name)"