This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: clean up gdb.modula2
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 25 Jun 2012 14:28:05 -0600
- Subject: FYI: clean up gdb.modula2
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