[gdb/testsuite] Mark ptype_union.exp as unsupported for cc-with-gdb-index
authorTom de Vries <tdevries@suse.de>
Fri, 21 Jun 2019 15:03:27 +0000 (17:03 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 21 Jun 2019 15:03:27 +0000 (17:03 +0200)
commitb13a7d03c29e28bc0b38ce166ad1907403709d36
tree597cfbc21b77e2966bd2cd3e1418f2d14d92b712
parentbe74b5b71481afe03aad074ad1951dcae152b97a
[gdb/testsuite] Mark ptype_union.exp as unsupported for cc-with-gdb-index

When testing gdb with board cc-with-gdb-index, we run into:
...
FAIL: gdb.ada/ptype_union.exp: ptype global
FAIL: gdb.ada/ptype_union.exp: print global
...

The index is not supported for Ada (PR24713), and cc-with-gdb-index does not
add an index for Ada test-cases.  However, this test-case compiles C sources,
for which cc-with-gdb-index does add an index.  In gdb we load the executable
containing the index and set the language to Ada, resulting in gdb trying to
handle something that is not supported.

Fix the fail by marking this unsupported.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-06-21  Tom de Vries  <tdevries@suse.de>

PR testsuite/24518
PR ada/24713
* gdb.ada/ptype_union.exp: Mark as unsupported if executable contains
index.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/ptype_union.exp