aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.modula2
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-06-25 20:28:23 +0000
committerTom Tromey <tromey@redhat.com>2012-06-25 20:28:23 +0000
commita884434d1976a833c15c08bb82fd29def21333ee (patch)
tree0fdb23060c3eb6ed81da636fcf17937f44677f21 /gdb/testsuite/gdb.modula2
parentefc9d70a28bf91fcb7c8797fbd381932f489f440 (diff)
downloadgdb-a884434d1976a833c15c08bb82fd29def21333ee.zip
gdb-a884434d1976a833c15c08bb82fd29def21333ee.tar.gz
gdb-a884434d1976a833c15c08bb82fd29def21333ee.tar.bz2
* gdb.modula2/unbounded-array.exp: Use standard_testfile,
prepare_for_testing.
Diffstat (limited to 'gdb/testsuite/gdb.modula2')
-rw-r--r--gdb/testsuite/gdb.modula2/unbounded-array.exp13
1 files changed, 3 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.modula2/unbounded-array.exp b/gdb/testsuite/gdb.modula2/unbounded-array.exp
index 3ab17f6..38dcf8f 100644
--- a/gdb/testsuite/gdb.modula2/unbounded-array.exp
+++ b/gdb/testsuite/gdb.modula2/unbounded-array.exp
@@ -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