From patchwork Fri Feb 7 15:00:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahab Vahedi X-Patchwork-Id: 37742 Received: (qmail 82346 invoked by alias); 7 Feb 2020 15:01:19 -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 81598 invoked by uid 89); 7 Feb 2020 15:01:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail-lf1-f66.google.com Received: from mail-lf1-f66.google.com (HELO mail-lf1-f66.google.com) (209.85.167.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Feb 2020 15:01:03 +0000 Received: by mail-lf1-f66.google.com with SMTP id n25so1739542lfl.0 for ; Fri, 07 Feb 2020 07:01:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lLWmPa5GUi5CBPVOZjLXGjd9rCl/N5XGxbgIfJWryrc=; b=a/l0LzXNpaOAQ+TLrzfZ6gvrQ/3STYzyRk6V6ZQb4z8HnuOOoeyTP8QymuLpcShniR 4qyw79S3ojx7cT3VsgAQw07lITGlXTTtYQ8TsKyac2Rrq3pg08ZTDC7KyR/rDLmoOJHZ Sy5xoOZHSU/a6TF7IvtqMllYf3zz+knOCEQMr3C6I1gNl5h5H9cX6nKdCs85Pzn0Tpu1 7MOepGaMgECyEK77nowLNjhPbsBrZJCiEGzWyddzp7oGSABAvDkAYFui4socRWrNYqxl F9k0j6T+dfkyUWNI0XOeuEESBI+CQ4EiaXTpDkxKuXhJYR3Nnbpdly4ll/gp/xrInrUe TyPQ== Return-Path: Received: from archie.internal.synopsys.com ([2a03:1b20:6:f011::2d]) by smtp.gmail.com with ESMTPSA id p136sm1184412lfa.8.2020.02.07.07.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 07:00:59 -0800 (PST) From: Shahab Vahedi To: gdb-patches@sourceware.org Cc: Shahab Vahedi , Shahab Vahedi , Francois Bedard , Anton Kolesov Subject: [PATCH 13/14] gdb/testsuite: Skip killed-outside when nosignals Date: Fri, 7 Feb 2020 16:00:02 +0100 Message-Id: <20200207150003.8383-14-shahab.vahedi@gmail.com> In-Reply-To: <20200207150003.8383-1-shahab.vahedi@gmail.com> References: <20200207150003.8383-1-shahab.vahedi@gmail.com> MIME-Version: 1.0 From: Anton Kolesov Test "killed-outside.exp" uses "kill -9" to kill target process via PID, something that will never work with an emdedded target has neither PID, nor is accessible to the host "kill" utility. Skip this test if "gdb,nosignals" is set. gdb/testsuite/ChangeLog: 2016-08-18 Anton Kolesov * gdb.base/killed-outside.exp: Skip the test if there is "nosignal". Signed-off-by: Anton Kolesov --- gdb/testsuite/gdb.base/killed-outside.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.base/killed-outside.exp b/gdb/testsuite/gdb.base/killed-outside.exp index 3e20ad67ceee..abb63e1512d6 100644 --- a/gdb/testsuite/gdb.base/killed-outside.exp +++ b/gdb/testsuite/gdb.base/killed-outside.exp @@ -80,6 +80,11 @@ proc test {cmds_after_kill} { } } +if [target_info exists gdb,nosignals] { + verbose "Skipping killed-outside.exp because of nosignals." + continue +} + if {[prepare_for_testing "failed to prepare" $testfile $srcfile] == -1} { return -1 }