* gdb.modula2/unbounded-array.exp: Use standard_testfile,
authorTom Tromey <tromey@redhat.com>
Mon, 25 Jun 2012 20:28:23 +0000 (20:28 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 25 Jun 2012 20:28:23 +0000 (20:28 +0000)
prepare_for_testing.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.modula2/unbounded-array.exp

index 0f59fac..240cd50 100644 (file)
@@ -1,5 +1,10 @@
 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,
        prepare_for_testing.
        * gdb.opt/inline-break.exp: Use standard_testfile,
index 3ab17f6..38dcf8f 100644 (file)
 # 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