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]

[RFA] gdb.ada, gdb.cp, gdb.python, replace wildcard regexp


This change replaces gdb_test foo "" ""
with gdb_test foo ".*" ""

2010-06-04  Michael Snyder  <msnyder@vmware.com>

	* gdb.ada/exec_changed.exp: 
	Use ".*" instead of "" as wildcard regexp.

	* gdb.cp/classes.exp: Use ".*" instead of "" as wildcard regexp.

	* gdb.python/py-frame.exp: Use ".*" instead of "" as wildcard regexp.
	* gdb.python/py-value.exp: Ditto.

Index: gdb.ada/exec_changed.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.ada/exec_changed.exp,v
retrieving revision 1.11
diff -u -p -r1.11 exec_changed.exp
--- gdb.ada/exec_changed.exp	1 Jan 2010 07:31:51 -0000	1.11
+++ gdb.ada/exec_changed.exp	4 Jun 2010 17:59:35 -0000
@@ -52,7 +52,7 @@ gdb_reinitialize_dir $srcdir/$subdir
 
 # Load the first executable.
 
-gdb_test "shell mv ${binfile1} ${binfile}" "" ""
+gdb_test "shell mv ${binfile1} ${binfile}" ".*" ""
 gdb_load ${binfile}
 
 # Start the program, we should land in the program main procedure
@@ -69,10 +69,10 @@ gdb_test "" \
 # second executable into its place.  Ensure that the new
 # executable is at least a second newer than the old.
 
-gdb_test "shell mv ${binfile} ${binfile1}" "" ""
-gdb_test "shell mv ${binfile2} ${binfile}" "" ""
-gdb_test "shell sleep 1" "" ""
-gdb_test "shell touch ${binfile}" "" ""
+gdb_test "shell mv ${binfile} ${binfile1}" ".*" ""
+gdb_test "shell mv ${binfile2} ${binfile}" ".*" ""
+gdb_test "shell sleep 1" ".*" ""
+gdb_test "shell touch ${binfile}" ".*" ""
 
 # Start the program a second time, GDB should land in procedure Second
 # this time.
Index: gdb.cp/classes.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/classes.exp,v
retrieving revision 1.27
diff -u -p -r1.27 classes.exp
--- gdb.cp/classes.exp	3 Jun 2010 23:54:18 -0000	1.27
+++ gdb.cp/classes.exp	4 Jun 2010 17:59:35 -0000
@@ -584,13 +584,13 @@ proc do_tests {} {
     # are any more instructions to finish the function call.
     gdb_test_multiple "finish" "" {
 	-re "enums2 \\(\\);.*$gdb_prompt $" {
-	    gdb_test "next" "" ""
+	    gdb_test "next" ".*" ""
 	}
 	-re "$gdb_prompt $" { }
     }
     test_enums
 
-    gdb_test "finish" "" ""
+    gdb_test "finish" ".*" ""
     test_pointers_to_class_members
     test_static_members
 
Index: gdb.python/py-frame.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-frame.exp,v
retrieving revision 1.5
diff -u -p -r1.5 py-frame.exp
--- gdb.python/py-frame.exp	14 Apr 2010 13:18:55 -0000	1.5
+++ gdb.python/py-frame.exp	4 Jun 2010 17:59:35 -0000
@@ -82,7 +82,7 @@ gdb_test "python print bf1.read_var(\"i\
 
 gdb_breakpoint "f2"
 gdb_continue_to_breakpoint "breakpoint at f2"
-gdb_test "up" "" ""
+gdb_test "up" ".*" ""
 
 gdb_py_test_silent_cmd "python f1 = gdb.selected_frame ()" "get second frame" 0
 gdb_py_test_silent_cmd "python f0 = f1.newer ()" "get first frame" 0
Index: gdb.python/py-value.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-value.exp,v
retrieving revision 1.12
diff -u -p -r1.12 py-value.exp
--- gdb.python/py-value.exp	4 Jun 2010 16:40:15 -0000	1.12
+++ gdb.python/py-value.exp	4 Jun 2010 17:59:35 -0000
@@ -122,9 +122,9 @@ proc test_value_numeric_ops {} {
   # Test pointer arithmethic
 
   # First, obtain the pointers
-  gdb_test "print (void *) 2" "" ""
+  gdb_test "print (void *) 2" ".*" ""
   gdb_test_no_output "python a = gdb.history (0)" ""
-  gdb_test "print (void *) 5" "" ""
+  gdb_test "print (void *) 5" ".*" ""
   gdb_test_no_output "python b = gdb.history (0)" ""
 
   gdb_test "python print 'result = ' + str(a+5)" " = 0x7" "add pointer value with python integer"

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