aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server/server-run.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-06-25 19:46:26 +0000
committerTom Tromey <tromey@redhat.com>2012-06-25 19:46:26 +0000
commitb0963d73503e461769479e7fa2e106d27fe77c05 (patch)
tree15587285bff593e567c232b09e1a6c54ed91e5ae /gdb/testsuite/gdb.server/server-run.exp
parent8a3e1f8d521c1ba7f4aa0449138f55106273afc2 (diff)
downloadgdb-b0963d73503e461769479e7fa2e106d27fe77c05.zip
gdb-b0963d73503e461769479e7fa2e106d27fe77c05.tar.gz
gdb-b0963d73503e461769479e7fa2e106d27fe77c05.tar.bz2
* gdb.server/ext-attach.exp: Use standard_testfile,
prepare_for_testing. * gdb.server/ext-run.exp: Use standard_testfile, build_executable. * gdb.server/file-transfer.exp: Use standard_testfile, prepare_for_testing. * gdb.server/server-exec-info.exp: Use standard_testfile. * gdb.server/server-mon.exp: Use standard_testfile, prepare_for_testing. * gdb.server/server-run.exp: Use standard_testfile, build_executable. * gdb.server/solib-list.exp: Use standard_testfile, standard_output_file.
Diffstat (limited to 'gdb/testsuite/gdb.server/server-run.exp')
-rw-r--r--gdb/testsuite/gdb.server/server-run.exp6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.server/server-run.exp b/gdb/testsuite/gdb.server/server-run.exp
index 88031e7..da357b4 100644
--- a/gdb/testsuite/gdb.server/server-run.exp
+++ b/gdb/testsuite/gdb.server/server-run.exp
@@ -19,15 +19,13 @@
load_lib gdbserver-support.exp
-set testfile "server"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/server-run
+standard_testfile server.c
if { [skip_gdbserver_tests] } {
return 0
}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1
}