diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-25 20:28:23 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-25 20:28:23 +0000 |
commit | a884434d1976a833c15c08bb82fd29def21333ee (patch) | |
tree | 0fdb23060c3eb6ed81da636fcf17937f44677f21 /gdb | |
parent | efc9d70a28bf91fcb7c8797fbd381932f489f440 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.modula2/unbounded-array.exp | 13 |
2 files changed, 8 insertions, 10 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0f59fac..240cd50 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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, 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 |