[gdb/testsuite] Remove stale exec in gdb_compile_ada
authorTom de Vries <tdevries@suse.de>
Thu, 13 Feb 2020 14:42:07 +0000 (15:42 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 13 Feb 2020 14:42:07 +0000 (15:42 +0100)
commit8f432634a53e91a1026dc81dbf3e70a7cd45c724
tree6a857d1d1f6fc117db13d72901236d1aa714ffa4
parent92b6eaf759d40406c788a1b576494a530f532928
[gdb/testsuite] Remove stale exec in gdb_compile_ada

When running test-case gdb.ada/ptype_tagged_param.exp, I get:
...
PASS: gdb.ada/ptype_tagged_param.exp: compilation foo.adb
...

However, when I then de-install gnatmake and run again, I get the same result.
This is due to a stale exec. After removing the stale exec, I get:
...
UNSUPPORTED: gdb.ada/ptype_tagged_param.exp: compilation foo.adb
...

Fix this removing the stale exec in gdb_compile_ada before compilation.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-02-13  Tom de Vries  <tdevries@suse.de>

* lib/ada.exp (gdb_compile_ada): Delete stale exec before compilation.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/ada.exp