[gdb/testsuite] Make pass message unique in gdb-index.exp for cc-with-dwz-m

With cc-with-dwz-m, we get:
...
PASS: gdb.dwarf2/gdb-index.exp: objcopy
PASS: gdb.dwarf2/gdb-index.exp: objcopy
...

Make the pass message unique by using with_test_prefix:
...
PASS: gdb.dwarf2/gdb-index.exp: objcopy
PASS: gdb.dwarf2/gdb-index.exp: modify dwz file: objcopy
...

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-09-29  Tom de Vries  <tdevries@suse.de>

	* gdb.dwarf2/gdb-index.exp: Use with_test_prefix for second objcopy.
This commit is contained in:
Tom de Vries 2019-09-29 23:51:50 +02:00
parent 612aac65e6
commit 73d9a918c6
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2019-09-29 Tom de Vries <tdevries@suse.de>
* gdb.dwarf2/gdb-index.exp: Use with_test_prefix for second objcopy.
2019-09-27 Tom de Vries <tdevries@suse.de> 2019-09-27 Tom de Vries <tdevries@suse.de>
* gdb.reverse/step-precsave.exp: Add missing $gdb_prompt in regexps. * gdb.reverse/step-precsave.exp: Add missing $gdb_prompt in regexps.

View File

@ -59,6 +59,7 @@ proc add_gdb_index { program } {
return "" return ""
} }
with_test_prefix "modify dwz file" {
if { [remote_file host exists ${dwz_index_file}] } { if { [remote_file host exists ${dwz_index_file}] } {
# We're modifying $dwz in place, otherwise we'd have to update # We're modifying $dwz in place, otherwise we'd have to update
# .gnu_debugaltlink in $program. # .gnu_debugaltlink in $program.
@ -69,6 +70,7 @@ proc add_gdb_index { program } {
return "" return ""
} }
} }
}
return ${program_with_index} return ${program_with_index}
} }