diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/consecutive.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/consecutive.exp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.base/consecutive.exp b/gdb/testsuite/gdb.base/consecutive.exp index dd29431..be70e9f 100644 --- a/gdb/testsuite/gdb.base/consecutive.exp +++ b/gdb/testsuite/gdb.base/consecutive.exp @@ -20,24 +20,17 @@ # -set testfile "consecutive" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { - untested consecutive.exp +if [get_compiler_info] { return -1 } -if [get_compiler_info] { +if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug nowarnings}]} { + untested $testfile.exp return -1 } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - if ![runto_main] then { perror "couldn't run to breakpoint" continue |