Fix gdb.ada/fun_renaming.exp by using more unique names.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 26 Dec 2018 13:33:10 +0000 (14:33 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 27 Dec 2018 09:47:00 +0000 (10:47 +0100)
commit293bf1a719e88e063e75ae467c5aec101b59fbf6
tree56c553c57a1094ccbcec447b42b804b2b35aaf0c
parent3cf139964eb2e2d3008174aa3d446797fce31240
Fix gdb.ada/fun_renaming.exp by using more unique names.

The test fails due to conflict between var 'next' and s-pooloc.adb next:
(gdb) print next(1)
Multiple matches for next
[0] cancel
[1] pack.next (integer) return integer at /bd/home/philippe/gdb/git/binutils-gdb/gdb/testsuite/gdb.ada/fun_renaming/pack.adb:19
[2] system.pool_local.next (system.address) return system.pool_local.acc_address at s-pooloc.adb:151
> FAIL: gdb.ada/fun_renaming.exp: print next(1) (timeout)

Fix by making the names and renamings more unique.

gdb/testsuite/ChangeLog
2018-12-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

* gdb.ada/fun_renaming/pack.ads (Next): Rename to Fun_Rename_Test_Next.
(Renamed_Next): Rename to Renamed_Fun_Rename_Test_Next.
gdb.ada/fun_renaming/pack.adb (Next): Rename to Fun_Rename_Test_Next.
gdb.ada/fun_renaming/fun_renaming.adb (N): Rename to Fun_Rename_Test_N.
gdb.ada/fun_renaming.exp: Update accordingly.
gdb/testsuite/gdb.ada/fun_renaming.exp
gdb/testsuite/gdb.ada/fun_renaming/fun_renaming.adb
gdb/testsuite/gdb.ada/fun_renaming/pack.adb
gdb/testsuite/gdb.ada/fun_renaming/pack.ads