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]

Re: [RFA] testsuite/gdb.base/attach.exp: Add missing kill -9


On Fri, Jun 25, 2004 at 02:24:35PM +0200, Corinna Vinschen wrote:
> 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?

No changelog, but otherwise OK.  Thanks - this one comes up in the
Debian autobuilders periodically.

> 
> 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.
> 

-- 
Daniel Jacobowitz


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