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, Testsuite] Update selftest.exp to match c source


This patch is to update gdb.gdb/selftest.exp to reflect the latest
source file, otherwise, it will fail in some cases due to failing to
match source code.

Is that OK?

-- 
Yao Qi
CodeSourcery
yao@codesourcery.com
(650) 331-3385 x739
gdb/testsuite/
2010-08-17  Yao Qi  <yao@codesourcery.com>

	* gdb.gdb/selftest.exp (do_steps_and_nexts): Update test case
	to reflect latest c source file.

Index: gdb/testsuite/gdb.gdb/selftest.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.gdb/selftest.exp,v
retrieving revision 1.24
diff -u -p -r1.24 selftest.exp
--- gdb/testsuite/gdb.gdb/selftest.exp	26 Jun 2010 06:44:47 -0000	1.24
+++ gdb/testsuite/gdb.gdb/selftest.exp	17 Aug 2010 05:58:37 -0000
@@ -185,11 +185,15 @@ proc do_steps_and_nexts {} {
 		set description "step over instream initialization"
 		set command "step"
 	    }
-	    -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf..;.*$gdb_prompt $" {
+	    -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf.*$gdb_prompt $" {
 		set description "next over getcwd"
 		set command "next"
 	    }
-	    -re ".*quit_flag = 0.*$gdb_prompt $" {
+	    -re ".*gdb_program_name = xstrdup.*$gdb_prompt $" {
+                set description "next over xstrdup"
+                set command "next"
+            } 
+            -re ".*quit_flag = 0.*$gdb_prompt $" {
 		set description "step over quit_flag initialization"
 		set command "step"
 	    }

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