This is the mail archive of the gdb-patches@sources.redhat.com 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] testsuite/gdb.base/attach.exp: Add missing kill -9


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.


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