Call gdb_exit before gdb_skip_xml_test on gdb.base/catch-syscall.exp
authorSergio Durigan Junior <sergiodj@redhat.com>
Fri, 24 Jul 2015 20:46:49 +0000 (16:46 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Fri, 24 Jul 2015 20:46:49 +0000 (16:46 -0400)
commit1e76a7e9b156173a76e6a14a3ed41cefc9fed480
tree9a62ecccbe70b2c14f52cdc34f57bbdea9e1e4d3
parent2b4cab865440e2c61d72da31a1a5045c840c60fe
Call gdb_exit before gdb_skip_xml_test on gdb.base/catch-syscall.exp

The gdb_skip_xml_test procedure explicitly says that it cannot be
invoked when GDB is running.  However, the testcase for "catch
syscall" is wrongly doing that, which is causing a failure on
native-extended-gdbserver tests:

  new FAIL: gdb.base/catch-syscall.exp: set tdesc filename /home/gdb-buildbot/fedora-x86-64-3/fedora-x86-64-native-extended-gdbserver-m32/build/gdb/testsuite/outputs/gdb.base/catch-syscall/trivial.xml (got interactive prompt)

This obvious commit fixes this, by calling gdb_exit before gdb_skip_xml_test.

Checked in as obvious.

gdb/testsuite/ChangeLog
2015-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>

* gdb.base/catch-syscall.exp: Call gdb_exit before
gdb_skip_xml_test.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/catch-syscall.exp