[gdb/testsuite] Use $gdb_test_file_name in gdb.dwarf2
authorTom de Vries <tdevries@suse.de>
Tue, 20 Oct 2020 08:20:24 +0000 (10:20 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 20 Oct 2020 08:20:24 +0000 (10:20 +0200)
commit0cd2ad78f15e746bde8eb7d4c1b6bb5cb6c174cc
treef2f205e7c6b120686c26bfd1c5f7cf8eb588a204
parentb9e920ecd6f65bd37917b2f9e6d3fed9c8a60f66
[gdb/testsuite] Use $gdb_test_file_name in gdb.dwarf2

In f.i. gdb.dwarf2/dw2-line-number-zero.exp we find:
...
    verbose "Skipping dw2-line-number-zero test."
...

Make the skip messages use the gdb_test_file_name variable, to reduce the
amount of changes that needs to be made when coping a test-case.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-10-20  Tom de Vries  <tdevries@suse.de>

* gdb.dwarf2/dw2-error.exp: Use $gdb_test_file_name.
* gdb.dwarf2/dw2-line-number-zero.exp: Same.
* gdb.dwarf2/dw2-main-no-line-number.exp: Same.
* gdb.dwarf2/dw2-ranges-base.exp: Same.
* gdb.dwarf2/dw2-ranges.exp: Same.
* gdb.dwarf2/dw2-vendor-extended-opcode.exp: Same.
* gdb.dwarf2/var-access.exp: Same.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-error.exp
gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp
gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
gdb/testsuite/gdb.dwarf2/dw2-vendor-extended-opcode.exp
gdb/testsuite/gdb.dwarf2/var-access.exp