From patchwork Sat Aug 15 06:31:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 8228 Received: (qmail 98711 invoked by alias); 15 Aug 2015 06:32:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 98698 invoked by uid 89); 15 Aug 2015 06:32:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f179.google.com Received: from mail-pd0-f179.google.com (HELO mail-pd0-f179.google.com) (209.85.192.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 15 Aug 2015 06:32:43 +0000 Received: by pdrh1 with SMTP id h1so38182115pdr.0 for ; Fri, 14 Aug 2015 23:32:41 -0700 (PDT) X-Received: by 10.70.50.165 with SMTP id d5mr47347831pdo.23.1439620361453; Fri, 14 Aug 2015 23:32:41 -0700 (PDT) Received: from seba.sebabeach.org.gmail.com (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by smtp.gmail.com with ESMTPSA id i9sm7915818pbq.44.2015.08.14.23.32.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 23:32:40 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH] perftest/utils.py (select_file): Kill any existing inferior before selecting a new file Date: Fri, 14 Aug 2015 23:31:46 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. fyi, I have committed this. I was getting some perf testsuite fails because a process was still live while selecting the next benchmark in the series. 2015-08-14 Doug Evans * gdb.perf/lib/perftest/utils.py (select_file): Kill any existing inferior before selecting a new file. diff --git a/gdb/testsuite/gdb.perf/lib/perftest/utils.py b/gdb/testsuite/gdb.perf/lib/perftest/utils.py index e3b3443..8598003 100644 --- a/gdb/testsuite/gdb.perf/lib/perftest/utils.py +++ b/gdb/testsuite/gdb.perf/lib/perftest/utils.py @@ -36,6 +36,7 @@ def select_file(file_name): N.B. This turns confirmation off. """ safe_execute("set confirm off") + safe_execute("kill") print ("Selecting file %s" % (file_name)) if file_name is None: gdb.execute("file")