From patchwork Fri Feb 7 14:59:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahab Vahedi X-Patchwork-Id: 37739 Received: (qmail 82216 invoked by alias); 7 Feb 2020 15:01:18 -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 81454 invoked by uid 89); 7 Feb 2020 15:00:57 -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-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:00:56 +0000 Received: by mail-lj1-f194.google.com with SMTP id h23so2460195ljc.8 for ; Fri, 07 Feb 2020 07:00:54 -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=RjQmWgU613SeWlkfXAJOMoHGdugWZqKoBkx/UFjqies=; b=uYNj+pFEEHlXwiMUfvMZ8BmBGlpcllJ/eZC835/XFcZ6h1Fo7mzSByHp03PGHYxNiJ Pa2+/spsoO0R8FHGk6jBs1gTIIyh5oXDZ9kBn+gUmqo260eMq2W4Fcm4nvmnnAKOoVea rSNv7hWYAQDJ6MIweWVGP6A1ECGEHIRY234GaMh0jlyZMBppiTsSiHYanxrzQXVWWxMM ObtfIaHLI281GWofLv7q/8pG7TksbvFvU0UHMsZGmBzfyLP9f6gg5nIfW3qBj102+u/5 mFgsLy+umia7BJuBsNYIZ7uHQ+oNBdXTEFMtEDgxg2Qrsj0jU92CWc5zTrf5gNaumS6/ Rr3g== 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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 07:00:50 -0800 (PST) From: Shahab Vahedi To: gdb-patches@sourceware.org Cc: Shahab Vahedi , Shahab Vahedi , Francois Bedard , Anton Kolesov Subject: [PATCH 08/14] gdb/testsuite: Fix bug in break-unload-file Date: Fri, 7 Feb 2020 15:59:57 +0100 Message-Id: <20200207150003.8383-9-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 cases should call prepare_for_testing instead of build_executable, otherwise path to current executable will be unchanged - set to the one left from the previous testcase. gdb/testsuite/ChangeLog: 2016-07-15 Anton Kolesov * gdb.base/break-unload-file.exp: Use "prepare_for_testing" instead of "build_executable". Signed-off-by: Anton Kolesov --- gdb/testsuite/gdb.base/break-unload-file.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/break-unload-file.exp b/gdb/testsuite/gdb.base/break-unload-file.exp index f59e727dbca4..ac26b8694bf2 100644 --- a/gdb/testsuite/gdb.base/break-unload-file.exp +++ b/gdb/testsuite/gdb.base/break-unload-file.exp @@ -18,7 +18,7 @@ standard_testfile -if {[build_executable "failed to prepare" $testfile $srcfile debug]} { +if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { return -1 }