From: Will Schmidt Date: Sat, 27 Mar 2021 14:31:27 +0000 (+0000) Subject: gdb/testsuite: make some test names unique in gdb.arch/powerpc-*.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99066782db401e60d9707a20c77e9f133f3b199b;p=binutils-gdb.git gdb/testsuite: make some test names unique in gdb.arch/powerpc-*.exp Resolve some duplicate test name warnings in gdb.arch/powerpc-*.exp tests by either extending the existing test names, or providing a new test name. gdb/testsuite/ChangeLog: * gdb.arch/powerpc-disassembler-options.exp: Extend some test names for uniqueness. * gdb.arch/powerpc-fpscr-gcore.exp: Add more test names for uniqueness. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3484004c129..01d781f1905 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2021-03-26 Will Schmidt + + * gdb.arch/powerpc-disassembler-options.exp: Extend some test + names for uniqueness. + * gdb.arch/powerpc-fpscr-gcore.exp: Add more test names for + uniqueness. + 2021-03-26 Andrew Burgess * gdb.python/py-prettyprint.c (struct container): Add 'is_array_p' diff --git a/gdb/testsuite/gdb.arch/powerpc-disassembler-options.exp b/gdb/testsuite/gdb.arch/powerpc-disassembler-options.exp index 765b49add0a..500f87f43ee 100644 --- a/gdb/testsuite/gdb.arch/powerpc-disassembler-options.exp +++ b/gdb/testsuite/gdb.arch/powerpc-disassembler-options.exp @@ -42,7 +42,7 @@ gdb_test "show disassembler-options" \ gdb_test_no_output "set disassembler-options $option" gdb_test "show disassembler-options" \ "The current disassembler options are '$option'.*" \ - "show disassembler-options $option" + "show disassembler-options $option after set arch $arch1" # Change architectures and verify the disassembler options have been preserved. @@ -52,5 +52,5 @@ gdb_test "set architecture $arch2" \ gdb_test "show disassembler-options" \ "The current disassembler options are '$option'.*" \ - "show disassembler-options $option" + "show disassembler-options $option after set arch $arch2" diff --git a/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp b/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp index da9a1b8f9fc..5a72e61d341 100644 --- a/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp +++ b/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp @@ -66,7 +66,7 @@ if { ![check_fpscr_access] } { return -1 } -set fpscr_size_process [get_integer_valueof "sizeof(\$fpscr)" -1] +set fpscr_size_process [get_integer_valueof "sizeof(\$fpscr)" -1 "process size"] set core_filename [standard_output_file "$testfile.core"] set core_generated [gdb_gcore_cmd "$core_filename" "generate core file"] @@ -83,7 +83,7 @@ if { $core_loaded != 1 } { return -1 } -set fpscr_size_corefile [get_integer_valueof "sizeof(\$fpscr)" -2] +set fpscr_size_corefile [get_integer_valueof "sizeof(\$fpscr)" -2 "corefile size" ] set test "fpscr size matches" if {$fpscr_size_process == $fpscr_size_corefile} {