Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] fix remote-host fails in gdb.cp/cplabel.exp
@ 2013-04-04  8:29 Sandra Loosemore
  2013-04-04 16:48 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Sandra Loosemore @ 2013-04-04  8:29 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

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.

[-- Attachment #2: cplabel.patch --]
[-- Type: text/x-patch, Size: 631 bytes --]

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\."
     }
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] fix remote-host fails in gdb.cp/cplabel.exp
  2013-04-04  8:29 [patch] fix remote-host fails in gdb.cp/cplabel.exp Sandra Loosemore
@ 2013-04-04 16:48 ` Pedro Alves
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2013-04-04 16:48 UTC (permalink / raw)
  To: Sandra Loosemore; +Cc: gdb-patches

On 04/04/2013 02:36 AM, Sandra Loosemore wrote:
> 
> 
> 2013-04-03  Sandra Loosemore  <sandra@codesourcery.com>
> 
>     gdb/testsuite/
> 
>     * gdb.cp/cplabel.exp: Fix regexp to allow tests to pass on
>     remote hosts.

That's a "why", not a "what", but we can leave a short why in the
header if you like.  Modelling from your other patch, something like:

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

	Tweak regexp to allow tests to pass on remote hosts.

	* gdb.cp/cplabel.exp: Allow empty directory in
	file reported for breakpoint location.

The patch itself is okay.

Thanks,
-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-04 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04  8:29 [patch] fix remote-host fails in gdb.cp/cplabel.exp Sandra Loosemore
2013-04-04 16:48 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox