+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,
# 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