Use do_self_tests in selftest.exp
authorYao Qi <yao.qi@linaro.org>
Tue, 19 Jul 2016 09:42:08 +0000 (10:42 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 19 Jul 2016 09:42:08 +0000 (10:42 +0100)
commitf25827c194fe9894f2c65f7e1101854022be4328
treecc482d3be179ebe5e98313b99b6f1ee2d7b41eef
parentace667e59aede65c400381f1cff704b61e8ccb0b
Use do_self_tests in selftest.exp

This patch uses do_self_tests to simplify selftest.exp.  It doesn't
change the tests except the order,

-PASS: gdb.gdb/selftest.exp: Disassemble main
 PASS: gdb.gdb/selftest.exp: breakpoint in captured_main
+PASS: gdb.gdb/selftest.exp: run until breakpoint at captured_main
+PASS: gdb.gdb/selftest.exp: Disassemble main
 PASS: gdb.gdb/selftest.exp: set interrupt character in test_with_self
 PASS: gdb.gdb/selftest.exp: set listsize to 1
-PASS: gdb.gdb/selftest.exp: run until breakpoint at captured_main

gdb/testsuite:

2016-07-19  Yao Qi  <yao.qi@linaro.org>

* gdb.gdb/selftest.exp: Remove checks on is_remote and isnative.
(test_with_self): Remove some code.  Remove argument executable.
(top-level): Use do_self_tests.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/selftest.exp