This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] testsuite/gdb.base/attach.exp: Add missing kill -9
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 25 Jun 2004 14:24:35 +0200
- Subject: [RFA] testsuite/gdb.base/attach.exp: Add missing kill -9
- Reply-to: gdb-patches at sources dot redhat dot com
Hi,
the below patch fixes the problem when due to GDB problems the attach
process keeps running. In two cases, the process is killed, but at the
end of do_attach_tests, the kill is missing.
Ok to check in?
Corinna
Index: gdb.base/attach.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/attach.exp,v
retrieving revision 1.12
diff -u -p -r1.12 attach.exp
--- gdb.base/attach.exp 7 Aug 2003 17:55:41 -0000 1.12
+++ gdb.base/attach.exp 25 Jun 2004 12:24:07 -0000
@@ -1,4 +1,4 @@
-# Copyright 1997, 1999, 2002 Free Software Foundation, Inc.
+# Copyright 1997, 1999, 2002, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -355,6 +355,9 @@ proc do_attach_tests {} {
-re "$gdb_prompt $" {fail "after attach3, exit"}
timeout {fail "(timeout) after attach3, exit"}
}
+
+ # Another "don't leave a process around"
+ remote_exec build "kill -9 ${testpid}"
}
proc do_call_attach_tests {} {
--
Corinna Vinschen
Cygwin Co-Project Leader
Red Hat, Inc.