This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] testsuite/gdb.base/attach.exp: Add missing kill -9
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 25 Jun 2004 09:35:23 -0400
- Subject: Re: [RFA] testsuite/gdb.base/attach.exp: Add missing kill -9
- References: <20040625122435.GA32135@cygbert.vinschen.de>
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