From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12737 invoked by alias); 25 Jun 2004 12:24:47 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12623 invoked from network); 25 Jun 2004 12:24:42 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 25 Jun 2004 12:24:42 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5PCOfe1009710 for ; Fri, 25 Jun 2004 08:24:41 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5PCOew25429 for ; Fri, 25 Jun 2004 08:24:40 -0400 Received: from cygbert.vinschen.de (vpn50-2.rdu.redhat.com [172.16.50.2]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i5PCOdP14971 for ; Fri, 25 Jun 2004 05:24:39 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 199A7582E2; Fri, 25 Jun 2004 14:24:36 +0200 (CEST) Date: Fri, 25 Jun 2004 12:24:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: [RFA] testsuite/gdb.base/attach.exp: Add missing kill -9 Message-ID: <20040625122435.GA32135@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-SW-Source: 2004-06/txt/msg00528.txt.bz2 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.