* 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 0f59fac5427febc00688b157cb84650809521ef9..240cd50f29c0cde5aa4b1dd8bb54ac2200d678f1 100644 (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,
index 3ab17f6a855966bd341cd7ab100b518d5ce5bec6..38dcf8fb0d51041907fe96a9811cebb5ba64720a 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