From patchwork Tue Oct 25 16:29:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 55243 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 5E45B38561A8 for ; Tue, 25 Oct 2022 16:32:24 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:107]) by sourceware.org (Postfix) with ESMTPS id BEEA4385703E for ; Tue, 25 Oct 2022 16:32:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BEEA4385703E 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 forward104p.mail.yandex.net (Yandex) with ESMTP id A21EC3C21247 for ; Tue, 25 Oct 2022 19:32:05 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-W5g0SMKt; Tue, 25 Oct 2022 19:32:05 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715525; bh=i3I/eIlEVwhHiH6qxbQjx8La9VlTRQbnvO/DRwYoE1g=; h=Message-Id:Date:Cc:Subject:To:From; b=dmSImocckYtltPwW4QQaDMdNnKr9qK2lhAtSg+lqem4w8BiGcLWoQKDhIvV/bLbrs 5G8uhL9Gf6oKsxDTIXFuEsDUN4GnqS1rLOOrOIuz9cbL8mDZaJUDsQE855g4L83XwE 3GreVwKrZuz78KHkU0fqSWWKvF4cDVScewUBzYbY= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 0/7] introduce get_runtime_path Date: Tue, 25 Oct 2022 19:29:40 +0300 Message-Id: <20221025162946.727169-1-ivan.tetyushkin@syntacore.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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" Hi. I tried to run a testsuite using a remote host test setup on QEMU (RISC-V) with Linux. Some tests that passed on local machine are failed due to hardcoded pathes in tests. For example, see gdb.base/print-file-var.exp. This test has SHLIB_NAME that is an absolute path on local machine, and of course this file does not exist on remote machine. To fix this, a function get_runtime_path was created. These patches introduce this function and some tests that could be fixed by changing an absolute path on local machine to a runtime path. Ivan Tetyushkin (7): [gdb/testsuite] Adding function to find runtime path to support remote execution for testsuite [gdb/testsuite] fix test gdb.base/print-file-var.exp for remote execution [gdb/testsuite] fix test gdb.base/jit-reader-exec.exp for remote execution [gdb/testsuite] fix test gdb.base/solib-vanish.exp for remote execution [gdb/testsuite] fix test gdb.base/infcall-exec.exp for remote execution [gdb/testsuite] fix test gdb.base/info-shared.exp for remote execution [gdb/testsuite] fix test gdb.base/jit-elf-so.exp for remote execution gdb/testsuite/gdb.base/infcall-exec.exp | 7 +++++-- gdb/testsuite/gdb.base/info-shared.exp | 9 +++++++-- gdb/testsuite/gdb.base/jit-elf-so.exp | 6 ++++-- gdb/testsuite/gdb.base/jit-reader-exec.exp | 5 ++++- gdb/testsuite/gdb.base/print-file-var.exp | 4 +++- gdb/testsuite/gdb.base/solib-vanish.exp | 7 ++++++- gdb/testsuite/lib/gdb.exp | 12 ++++++++++++ 7 files changed, 41 insertions(+), 9 deletions(-)