* FYI: clean up gdb.modula2
@ 2012-06-25 20:28 Tom Tromey
2012-06-26 9:37 ` Gaius Mulley
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2012-06-25 20:28 UTC (permalink / raw)
To: gdb-patches
I'm checking this in.
This changes gdb.modula2 to use standard_testfile and prepare_for_testing.
Regtested on x86-64 Fedora 16.
Tom
2012-06-25 Tom Tromey <tromey@redhat.com>
* gdb.modula2/unbounded-array.exp: Use standard_testfile,
prepare_for_testing.
Index: gdb.modula2/unbounded-array.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.modula2/unbounded-array.exp,v
retrieving revision 1.8
diff -u -r1.8 unbounded-array.exp
--- gdb.modula2/unbounded-array.exp 16 Jan 2012 16:21:51 -0000 1.8
+++ gdb.modula2/unbounded-array.exp 25 Jun 2012 20:27:14 -0000
@@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-26 9:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-25 20:28 FYI: clean up gdb.modula2 Tom Tromey
2012-06-26 9:37 ` Gaius Mulley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox