summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/all-bin.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-06-27 18:47:52 +0000
committerTom Tromey <tromey@redhat.com>2013-06-27 18:47:52 +0000
commit1335b40f19a94983ec2926156fbf6f92778f446d (patch)
treeb314b63a369ad65c621c26162f3ea65e84b5981e /gdb/testsuite/gdb.base/all-bin.exp
parentb3e2bade1b515a50e680fbf5771f5a451e72fcae (diff)
downloadgdb-1335b40f19a94983ec2926156fbf6f92778f446d.tar.gz
test suite update - gdb.base/[ab]
Convert files gdb.base/[ab]*.exp to use standard_output_file et al. * a2-run.exp, all-bin.exp, annota1.exp, annota3.exp, anon.exp, args.exp, arithmet.exp, arrayidx.exp, assign.exp, async-shell.exp, async.exp, attach-pie-misread.exp, attach-pie-noexec.exp, attach-twice.exp, attach.exp, auxv.exp, bang.exp, bfp-test.exp, bigcore.exp, bitfields.exp, bitfields2.exp, break-entry.exp, break-interp.exp, break-on-linker-gcd-function.exp, breakpoint-shadow.exp: Use standard_testfile, standard_output_file, prepare_for_testing, clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.base/all-bin.exp')
-rw-r--r--gdb/testsuite/gdb.base/all-bin.exp18
1 files changed, 5 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.base/all-bin.exp b/gdb/testsuite/gdb.base/all-bin.exp
index 53f6d5b40bf..815844aa2ca 100644
--- a/gdb/testsuite/gdb.base/all-bin.exp
+++ b/gdb/testsuite/gdb.base/all-bin.exp
@@ -27,24 +27,16 @@
# test running programs
#
-set testfile "all-types"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
-
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } {
- untested all-bin.exp
- return -1
- }
+standard_testfile all-types.c
if [get_compiler_info] {
return -1
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
+if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
+ untested $testfile.exp
+ return -1
+}
#
# set it up at a breakpoint so we can play with the variable values