This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: fix source.exp
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 07 Jan 2010 13:06:39 -0700
- Subject: FYI: fix source.exp
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in.
Today I noticed that source.exp is failing. It fails because the line
number in the test is wrong -- at some point in the past,
source-error.gdb was changed, resulting in the line being off by 1.
Tom
2010-01-07 Tom Tromey <tromey@redhat.com>
* gdb.base/source.exp: Use correct line number.
Index: gdb.base/source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/source.exp,v
retrieving revision 1.8
diff -u -r1.8 source.exp
--- gdb.base/source.exp 1 Jan 2010 07:32:01 -0000 1.8
+++ gdb.base/source.exp 7 Jan 2010 20:05:43 -0000
@@ -32,7 +32,7 @@
gdb_start
gdb_test "source ${srcdir}/${subdir}/source-error.gdb" \
- "source-error.gdb:22: Error in sourced command file:\[\r\n\]*Cannot access memory at address 0x0.*" \
+ "source-error.gdb:21: Error in sourced command file:\[\r\n\]*Cannot access memory at address 0x0.*" \
"script contains error"
gdb_exit