diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b6cd6eec228..0fa3afb0b64 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2017-10-12 Pedro Alves + Simon Marchi + + * gdb.base/inferior-died.exp: Remove is_remote and isnative + checks. Use build_executable + clean_restart instead of + prepare_for_testing. Pass "set non-stop on" via GDBFLAGS instead + of enabling non-stop after starting gdb. + 2017-10-12 Pedro Alves * gdb.threads/non-ldr-exc-1.exp: No longer skip if is_remote target. diff --git a/gdb/testsuite/gdb.base/inferior-died.exp b/gdb/testsuite/gdb.base/inferior-died.exp index f2005fa0982..ecf80d42388 100644 --- a/gdb/testsuite/gdb.base/inferior-died.exp +++ b/gdb/testsuite/gdb.base/inferior-died.exp @@ -13,11 +13,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -if { [is_remote target] || ![isnative] } then { - unsupported "inferior-died.exp" - continue -} - # Until "set follow-fork-mode" and "catch fork" are implemented on # other targets... # @@ -33,12 +28,16 @@ if { ![support_displaced_stepping] } { standard_testfile .c -if { [prepare_for_testing "failed to prepare" ${testfile} ${testfile}.c] } { +if { [build_executable "failed to build" ${testfile} ${testfile}.c] } { return -1 } +save_vars { GDBFLAGS } { + append GDBFLAGS " -ex \"set non-stop on\"" + clean_restart ${binfile} +} + gdb_test_no_output "set detach-on-fork off" -gdb_test_no_output "set non-stop on" if ![runto_main] { return