This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] gdb.base/attach.exp replace gdb_test_multi
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 04 Jun 2010 16:10:19 -0700
- Subject: [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}"