public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [patch] gdb.base/*.exp: Do not expect full paths to file names.
@ 2010-07-31  0:03 Kazu Hirata
  2010-08-02 11:46 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Kazu Hirata @ 2010-07-31  0:03 UTC (permalink / raw)
  To: gdb-patches

Hi,

Attached is a patch to adjust break-always.exp and commands.exp to
stop expecting full paths to file names.

Without this patch, these testcases fail on sparc-solaris2.8.

Tested on sparc-solaris2.8.  OK to apply?

Kazu Hirata

2010-07-30  Kazu Hirata  <kazu@codesourcery.com>

	* gdb.base/break-always.exp: Do not expect full paths to file
	names.
	* gdb.base/commands.exp: Likewise.

Index: gdb/testsuite/gdb.base/break-always.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break-always.exp,v
retrieving revision 1.5
diff -u -d -p -r1.5 break-always.exp
--- gdb/testsuite/gdb.base/break-always.exp	1 Jun 2010 21:29:21 -0000	1.5
+++ gdb/testsuite/gdb.base/break-always.exp	30 Jul 2010 21:47:45 -0000
@@ -29,7 +29,7 @@ gdb_test "show breakpoint always-inserte
 runto foo
 
 gdb_test "break bar" "Breakpoint 2.*" "set breakpoint on bar"
-gdb_continue_to_breakpoint "bar" ".*/break-always.c:$bar_location.*"
+gdb_continue_to_breakpoint "bar" ".*break-always.c:$bar_location.*"
 
 
 
Index: gdb/testsuite/gdb.base/commands.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/commands.exp,v
retrieving revision 1.40
diff -u -d -p -r1.40 commands.exp
--- gdb/testsuite/gdb.base/commands.exp	10 Jun 2010 19:48:19 -0000	1.40
+++ gdb/testsuite/gdb.base/commands.exp	30 Jul 2010 21:47:45 -0000
@@ -427,7 +427,7 @@ proc bp_deleted_in_command_test {} {
     # Create a breakpoint, and associate a command-list to it, with
     # one command that deletes this breakpoint.
     gdb_test "break factorial" \
-             "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \
+             "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\." \
              "breakpoint in bp_deleted_in_command_test"
     
     gdb_test_multiple "commands" "begin commands in bp_deleted_in_command_test" {
@@ -489,7 +489,7 @@ proc temporary_breakpoint_commands {} {
     # This test will verify that this commands list is executed when the
     # breakpoint is hit.
     gdb_test "tbreak factorial" \
-	    "Temporary breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \
+	    "Temporary breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\." \
 	    "breakpoint in temporary_breakpoint_commands"
     
     gdb_test_multiple "commands" \
@@ -634,7 +634,7 @@ proc if_commands_test {} {
 	}
     }
     gdb_test_multiple "end" "second end - $test" {
-	-re "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\.\r\n$gdb_prompt $" {
+	-re "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\.\r\n$gdb_prompt $" {
 	    pass "second end - $test"
 	}
 	-re "Undefined command: \"silent\".*$gdb_prompt $" {
@@ -660,7 +660,7 @@ proc if_commands_test {} {
 	}
     }
     gdb_test_multiple "end" "second end - $test" {
-	-re "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\.\r\n$gdb_prompt $" {
+	-re "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\.\r\n$gdb_prompt $" {
 	    pass "second end - $test"
 	}
     }

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

* Re: [patch] gdb.base/*.exp: Do not expect full paths to file names.
  2010-07-31  0:03 [patch] gdb.base/*.exp: Do not expect full paths to file names Kazu Hirata
@ 2010-08-02 11:46 ` Pedro Alves
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2010-08-02 11:46 UTC (permalink / raw)
  To: gdb-patches; +Cc: Kazu Hirata

On Saturday 31 July 2010 01:03:39, Kazu Hirata wrote:
> Attached is a patch to adjust break-always.exp and commands.exp to
> stop expecting full paths to file names.
> 
> Without this patch, these testcases fail on sparc-solaris2.8.

(I think the relevance is remote host testing)

> 
> Tested on sparc-solaris2.8.  OK to apply?

Okay.

-- 
Pedro Alves

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

end of thread, other threads:[~2010-08-02 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-31  0:03 [patch] gdb.base/*.exp: Do not expect full paths to file names Kazu Hirata
2010-08-02 11:46 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).