This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] fix remote-host fails in gdb.cp/cplabel.exp


This 1-character patch is very similar to this already-approved one:

http://sourceware.org/ml/gdb-patches/2013-04/msg00053.html

It fixes the regexp in the testcase to allow the test to pass when the file is compiled without a directory prefix in remote-host testing.

OK to commit?

-Sandra


2013-04-03  Sandra Loosemore  <sandra@codesourcery.com>

	gdb/testsuite/

	* gdb.cp/cplabel.exp: Fix regexp to allow tests to pass on
	remote hosts.
Index: gdb/testsuite/gdb.cp/cplabel.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/cplabel.exp,v
retrieving revision 1.3
diff -u -p -r1.3 cplabel.exp
--- gdb/testsuite/gdb.cp/cplabel.exp	1 Jan 2013 06:33:27 -0000	1.3
+++ gdb/testsuite/gdb.cp/cplabel.exp	4 Apr 2013 01:30:12 -0000
@@ -35,6 +35,6 @@ foreach m $methods {
     foreach l $labels {
 	set line [gdb_get_line_number "$m:$l"]
 	gdb_test "break foo::$m:$l" \
-	    "Breakpoint $decimal at $hex: file .*/$srcfile, line $line\."
+	    "Breakpoint $decimal at $hex: file .*$srcfile, line $line\."
     }
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]