From patchwork Tue Oct 25 16:29:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Tetyushkin X-Patchwork-Id: 59408 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 EB13238582B1 for ; Tue, 25 Oct 2022 16:33:49 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::109]) by sourceware.org (Postfix) with ESMTPS id E133B3856951 for ; Tue, 25 Oct 2022 16:33:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E133B3856951 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 forward106j.mail.yandex.net (Yandex) with ESMTP id C62FA6BDAD97 for ; Tue, 25 Oct 2022 19:32:51 +0300 (MSK) Received: by sas1-71299a9d5a62.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id vYrOVqEYP6-Wpg0DweX; Tue, 25 Oct 2022 19:32:51 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=syntacore.com; s=mail; t=1666715571; bh=BF/dvwmdA9R9tuzqony/RnBkkIiB5ymlNFhbrga8wMs=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=PA81GWHaCE6UQ/IOdaCYflK9xzG2EroKvdl8WB1mqk1iPzDBNhZ6IVfmMWiyz+wfV baiGDDZ49YKJJe3v4GIgCHqyTs6jt3TaFTZBsrw+QjN7fa7MDvUaqx0oQ5IeGtxQh6 FDEehpaEMjze9iOJnvYgHeCoY81UDqxkhW0ClY4Q= Authentication-Results: sas1-71299a9d5a62.qloud-c.yandex.net; dkim=pass header.i=@syntacore.com From: Ivan Tetyushkin To: gdb-patches@sourceware.org Subject: [PATCH 5/7] [gdb/testsuite] fix test gdb.base/infcall-exec.exp for remote execution Date: Tue, 25 Oct 2022 19:29:50 +0300 Message-Id: <20221025162946.727169-6-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.3 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/infcall-exec.exp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/infcall-exec.exp b/gdb/testsuite/gdb.base/infcall-exec.exp index e8f6a218c36..514dc70a4d9 100644 --- a/gdb/testsuite/gdb.base/infcall-exec.exp +++ b/gdb/testsuite/gdb.base/infcall-exec.exp @@ -21,6 +21,7 @@ standard_testfile set testfile2 "infcall-exec2" set srcfile2 "${testfile2}.c" set binfile2 [standard_output_file $testfile2] +set runtimebinfile2 [get_runtime_file $binfile2] # Build the two executables for the test. if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable debug] != ""} { @@ -33,15 +34,17 @@ if {[gdb_compile $srcdir/$subdir/$srcfile2 $binfile2 executable debug] != ""} { } clean_restart $binfile +gdb_remote_download target $binfile +gdb_remote_download target $binfile2 if {![runto_main]} { return -1 } -set expected_result "process $decimal is executing new program: $binfile2" +set expected_result "process $decimal is executing new program: $runtimebinfile2" append expected_result "\[\r\n\]+.*" append expected_result "Breakpoint 1, main .*at .*$srcfile2:$decimal" append expected_result ".*" -gdb_test "call (int) execlp \(\"$binfile2\", \"$binfile2\", \(char \*\)0\)" \ +gdb_test "call (int) execlp \(\"$runtimebinfile2\", \"$runtimebinfile2\", \(char \*\)0\)" \ $expected_result "call execlp"