From patchwork Tue Oct 25 16:29:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59405 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C06C38582B1 for ; Tue, 25 Oct 2022 16:32:52 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward107j.mail.yandex.net (forward107j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::252]) by sourceware.org (Postfix) with ESMTPS id 8A2BF3856952 for ; Tue, 25 Oct 2022 16:32:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8A2BF3856952 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=syntacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=syntacore.com Received: from sas1-71299a9d5a62.qloud-c.yandex.net (sas1-71299a9d5a62.qloud-c.yandex.net [IPv6:2a02:6b8:c08:210e:0:640:7129:9a9d]) by forward107j.mail.yandex.net (Yandex) with ESMTP id E242E885C84 for ; Tue, 25 Oct 2022 19:32:31 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-WVg0D609; Tue, 25 Oct 2022 19:32:31 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715551; bh=AUYuR9NzYHEkHt+MJgZSB8RSbSNijo7lIA5rrkOjAbo=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=plYwP0vZS+tiGi2WXQ2oflTbiW4sSldcldDogz9yksdeoxcSalph+2CrtfKEmUCK0 GKOqOKFvGqMtydrqP652wNNG899MigROTEaj9goBCqX2S0e3eCPhgS6YrokzKdjs7n 3yqJs35s5tUhU+DjYwONYQU9/C4hsJ1xn53mdXdQ= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 3/7] [gdb/testsuite] fix test gdb.base/jit-reader-exec.exp for remote execution Date: Tue, 25 Oct 2022 19:29:46 +0300 Message-Id: <20221025162946.727169-4-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> References: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gdb/testsuite/gdb.base/jit-reader-exec.exp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/jit-reader-exec.exp b/gdb/testsuite/gdb.base/jit-reader-exec.exp index c5ee8ef89a3..8b03b24f1e6 100644 --- a/gdb/testsuite/gdb.base/jit-reader-exec.exp +++ b/gdb/testsuite/gdb.base/jit-reader-exec.exp @@ -26,8 +26,9 @@ standard_testfile jit-reader-exec.c set testfile2 "jit-reader-execd" set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}] +set runtimefile2 [get_runtime_file $binfile2] -set compile_options [list debug additional_flags=-DPROGRAM=\"$binfile2\"] +set compile_options [list debug additional_flags=-DPROGRAM=\"$runtimefile2\"] if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable $compile_options] != ""} { @@ -43,6 +44,8 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" \ clean_restart $binfile +gdb_remote_download target $binfile2 + if {![runto_main]} { return }