From patchwork Tue Oct 25 16:29:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59409 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 E33A2385B83C for ; Tue, 25 Oct 2022 16:34:10 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::608]) by sourceware.org (Postfix) with ESMTPS id 707C83856DCA for ; Tue, 25 Oct 2022 16:33:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 707C83856DCA 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 forward105o.mail.yandex.net (Yandex) with ESMTP id 1A77B4C554B for ; Tue, 25 Oct 2022 19:33:10 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-X9g0jKs6; Tue, 25 Oct 2022 19:33:09 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715589; bh=uiv0VoBu5yeEGFQ9qMS8gCKv+SPOwvPHSciOyT/Kfog=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=wQyCLkOJ5v2Je2fLFDUCuiNiNXn832C25zG17tMYN44QbsVQAFXevMzbcCDEs9jCd r1cQCNa6nJFcAPBoR1GBfnOsgWRPB06Keg+GYq/OX/CRjVqueK74VpO9j43goeYD9c zITpsT/WyK2iNo4G1Leqagaildjlr7ifYfWUBoho= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 7/7] [gdb/testsuite] fix test gdb.base/jit-elf-so.exp for remote execution Date: Tue, 25 Oct 2022 19:29:54 +0300 Message-Id: <20221025162946.727169-8-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=-12.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-elf-so.exp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/jit-elf-so.exp b/gdb/testsuite/gdb.base/jit-elf-so.exp index dcc9afc36b9..566e9ef0673 100644 --- a/gdb/testsuite/gdb.base/jit-elf-so.exp +++ b/gdb/testsuite/gdb.base/jit-elf-so.exp @@ -90,7 +90,8 @@ proc one_jit_test {solib_binfiles_target match_str} { gdb_breakpoint [gdb_get_line_number "break here before-dlopen" \ $main_loader_srcfile] gdb_continue_to_breakpoint "break here before-dlopen" - gdb_test_no_output "set var jit_libname = \"$main_solib_binfile\"" \ + set runtime_main_solib_binfile [get_runtime_file $main_solib_binfile] + gdb_test_no_output "set var jit_libname = \"$runtime_main_solib_binfile\"" \ "setting library name" gdb_breakpoint [gdb_get_line_number "break here after-dlopen" \ @@ -159,8 +160,9 @@ foreach solib $jit_solibs_target { # We don't intend to load the .so as a JIT debuginfo reader, but we # need some handy file name for a completion test. set input [string range $solib 0 [expr { [string length $solib] - 2 }]] + set runtime_solib [get_runtime_file $input] gdb_test \ "complete jit-reader-load [standard_output_file $input]" \ - "jit-reader-load $solib" \ + "jit-reader-load $runtime_solib" \ "test jit-reader-load filename completion [file tail $solib]" }