From patchwork Fri Feb 7 15:00:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahab Vahedi X-Patchwork-Id: 37738 Received: (qmail 82193 invoked by alias); 7 Feb 2020 15:01:17 -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 81864 invoked by uid 89); 7 Feb 2020 15:01:06 -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=HX-Languages-Length:1952, HContent-Transfer-Encoding:8bit X-HELO: mail-lj1-f194.google.com Received: from mail-lj1-f194.google.com (HELO mail-lj1-f194.google.com) (209.85.208.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Feb 2020 15:01:04 +0000 Received: by mail-lj1-f194.google.com with SMTP id r19so2474272ljg.3 for ; Fri, 07 Feb 2020 07:01:04 -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=7/D1HNlfjip6N9xsowkPHK1YJsq0XbZ3+yILYUH8RR0=; b=W9I7lV95JkMVXVfHoKdWRGfWVwFKv6qaPxcLHO2z0R52OMBeP9wSSYVpwbPgUaM0T6 ugNs8yaKlM2URjAXf7ToyAJ/measVhYJFmEVPnAmOuWblhq/aAJc41n02lCEBmjnjgG7 SPUjO6HEXNtAV7EkzQvP0F+iYFS01oofDKgbwOCYBL4PAz3LfJaNveb4o/W0xp4Vg3N9 dyN+XZlegPUlC0l0z812p6tU1J44uByBw/K2NAVmK4oeZmBQJ5coq8oonz4tLha2Dv/I AL5+1syAfGg8Im3/+S4wPWcChixv+anFESVunNkhgMI6lXAnsDjNjfQGoeR0bb/VoCZ8 G6qA== 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.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 07:01:01 -0800 (PST) From: Shahab Vahedi To: gdb-patches@sourceware.org Cc: Shahab Vahedi , Shahab Vahedi , Francois Bedard , Anton Kolesov Subject: [PATCH 14/14] gdb/testsuite: Skip some compile.exp tests when running with gdb-comm board Date: Fri, 7 Feb 2020 16:00:03 +0100 Message-Id: <20200207150003.8383-15-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 gdb/testsuite/ChangeLog: 2016-08-19 Anton Kolesov * gdb.compile/compile.exp: Skip if "gdb_comm" was used. Signed-off-by: Anton Kolesov --- gdb/testsuite/gdb.compile/compile.exp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/gdb/testsuite/gdb.compile/compile.exp b/gdb/testsuite/gdb.compile/compile.exp index 9ad4181b2fe8..eb4f9bae11dd 100644 --- a/gdb/testsuite/gdb.compile/compile.exp +++ b/gdb/testsuite/gdb.compile/compile.exp @@ -40,17 +40,20 @@ clean_restart ${testfile} # # Test command without an running inferior. # -gdb_test "compile code int i=2;" \ - "The program must be running for the compile command to work.*" \ - "test compile code command without running inferior" - -gdb_test "compile int i=2;" \ - "The program must be running for the compile command to work.*" \ - "test compile command without running inferior" - -gdb_test "compile file -r ${srcdir}/${subdir}/${testfile}-mod.c" \ - "The program must be running for the compile command to work.*" \ - "test compile file command without running inferior" +# If target is run via gdb_comm board, then there is already running inferior. +if {[target_info protocol] != "gdb_comm"} { + gdb_test "compile code int i=2;" \ + "The program must be running for the compile command to work.*" \ + "test compile code command without running inferior" + + gdb_test "compile int i=2;" \ + "The program must be running for the compile command to work.*" \ + "test compile command without running inferior" + + gdb_test "compile file -r ${srcdir}/${subdir}/${testfile}-mod.c" \ + "The program must be running for the compile command to work.*" \ + "test compile file command without running inferior" +} if ![runto_main] { return -1