diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-25 19:46:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-25 19:46:26 +0000 |
commit | b0963d73503e461769479e7fa2e106d27fe77c05 (patch) | |
tree | 15587285bff593e567c232b09e1a6c54ed91e5ae /gdb/testsuite/gdb.server/ext-attach.exp | |
parent | 8a3e1f8d521c1ba7f4aa0449138f55106273afc2 (diff) | |
download | binutils-b0963d73503e461769479e7fa2e106d27fe77c05.zip binutils-b0963d73503e461769479e7fa2e106d27fe77c05.tar.gz binutils-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/ext-attach.exp')
-rw-r--r-- | gdb/testsuite/gdb.server/ext-attach.exp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.server/ext-attach.exp b/gdb/testsuite/gdb.server/ext-attach.exp index 8cfcaaf..c5aec84 100644 --- a/gdb/testsuite/gdb.server/ext-attach.exp +++ b/gdb/testsuite/gdb.server/ext-attach.exp @@ -19,9 +19,7 @@ load_lib gdbserver-support.exp -set testfile "ext-attach" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile if { [skip_gdbserver_tests] } { return 0 @@ -32,16 +30,10 @@ if [is_remote target] then { return 0 } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested ext-attach.exp +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" ".*" |