diff options
Diffstat (limited to 'gdb/testsuite/gdb.server/server-mon.exp')
-rw-r--r-- | gdb/testsuite/gdb.server/server-mon.exp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.server/server-mon.exp b/gdb/testsuite/gdb.server/server-mon.exp index ca9ee3e..f47fe15 100644 --- a/gdb/testsuite/gdb.server/server-mon.exp +++ b/gdb/testsuite/gdb.server/server-mon.exp @@ -19,23 +19,16 @@ load_lib gdbserver-support.exp -set testfile "server" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/server-mon +standard_testfile server.c if { [skip_gdbserver_tests] } { return 0 } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { +if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} { return -1 } -gdb_exit -gdb_start -gdb_load $binfile -gdb_reinitialize_dir $srcdir/$subdir - # Make sure we're disconnected, in case we're testing with an # extended-remote board, therefore already connected. gdb_test "disconnect" ".*" |