* gdb.modula2/unbounded-array.exp: Use standard_testfile,

prepare_for_testing.
This commit is contained in:
Tom Tromey 2012-06-25 20:28:23 +00:00
parent efc9d70a28
commit a884434d19
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2012-06-25 Tom Tromey <tromey@redhat.com>
* gdb.modula2/unbounded-array.exp: Use standard_testfile,
prepare_for_testing.
2012-06-25 Tom Tromey <tromey@redhat.com>
* gdb.opt/clobbered-registers-O2.exp: Use standard_testfile,

View File

@ -17,20 +17,13 @@
# the elements of an unbounded array using the Modula-2 language mode of
# gdb.
set testfile "unbounded1"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
standard_testfile unbounded1.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug quiet}] != "" } {
untested "Couldn't compile ${srcfile}"
if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug quiet}]} {
untested $testfile.exp
return -1
}
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
if ![runto foo] then {
perror "couldn't run to breakpoint foo"
continue