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] gdb.base/attach.exp replace gdb_test_multi


A simplification by using gdb_test.
Checked in.

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

	* gdb.base/attach.exp: Replace gdb_test_multiple with gdb_test.

Index: attach.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/attach.exp,v
retrieving revision 1.31
diff -u -p -r1.31 attach.exp
--- attach.exp	1 Jun 2010 21:29:21 -0000	1.31
+++ attach.exp	4 Jun 2010 23:08:15 -0000
@@ -309,11 +309,11 @@ proc do_attach_tests {} {
 	"attach when process' a.out not in cwd"
 
     set test "after attach3, exit"
-    gdb_test_multiple "kill" "$test" {
-	-re "Kill the program being debugged.*y or n. $" {
-	    gdb_test "y" "" "$test"
-	}
-    }
+    gdb_test "kill" \
+	"" \
+	"$test" \
+	"Kill the program being debugged.*y or n. $" \
+	"y"
     
     # Another "don't leave a process around"
     remote_exec build "kill -9 ${testpid}"

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