Fix unstable test names in gdb.arch/arc-tdesc-cpu.exp
authorPedro Alves <palves@redhat.com>
Tue, 24 Oct 2017 09:43:33 +0000 (10:43 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 24 Oct 2017 09:43:33 +0000 (10:43 +0100)
commita80e65a9d590f8817e4acd5a62363319b6a1f961
treeeaf32e6bf900d57f01d34aa0885325ac5542a62a
parent2c3f27ed0d6a91bc0812bb2fc6965fd03a413fee
Fix unstable test names in gdb.arch/arc-tdesc-cpu.exp

Currently if you diff testsuite/gdb.sum of two builds built from
different source trees you see this spurious hunk:

  -PASS: gdb.arch/arc-tdesc-cpu.exp: set tdesc filename /home/pedro/gdb1/src/gdb/testsuite/gdb.arch/arc-tdesc-cpu.xml
  +PASS: gdb.arch/arc-tdesc-cpu.exp: set tdesc filename /home/pedro/gdb2/src/gdb/testsuite/gdb.arch/arc-tdesc-cpu.xml

After this commit we'll show this instead in gdb.sum:
  PASS: gdb.arch/arc-tdesc-cpu.exp: set tdesc filename $srcdir/gdb.arch/arc-tdesc-cpu.xml

gdb/testsuite/ChangeLog:
2017-10-24  Pedro Alves  <palves@redhat.com>

* gdb.arch/arc-tdesc-cpu.exp ('set tdesc filename'): Use gdb_test
with explicit test name.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/arc-tdesc-cpu.exp