From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GRuvHS5I52qtny4AWB0awg (envelope-from ) for ; Sun, 01 Nov 2026 09:09:50 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nQ3hxOjm; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=+ZZ7RcZx; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nQ3hxOjm; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=+ZZ7RcZx; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 69D15378006; Sun, 01 Nov 2026 09:09:50 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0BF0C378002 for ; Sun, 01 Nov 2026 09:09:45 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9B76B4BB1C3E for ; Sun, 1 Nov 2026 14:09:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B76B4BB1C3E Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nQ3hxOjm; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=+ZZ7RcZx; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nQ3hxOjm; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=+ZZ7RcZx Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 566F54BB1C1F for ; Sun, 1 Nov 2026 14:07:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 566F54BB1C1F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 566F54BB1C1F Authentication-Results: sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793542075; cv=none; b=deaAiS7AUOdhJiCFQML9bymUHsa+D/dakhqxw1DXN0HmTji0GPSSjwH9zxBibFO1TmKT0h/kM2HZAC5Df4PWeMDIDN0KFv2hHQiMeevCnlmyuyJdm30/f86C01k9OfjtmMeulA1q9H7EOlgyubjKROqvg98n4Tqyw34IBmtz69c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793542075; c=relaxed/simple; bh=4qX1MPSrk72MqWrh/LWCuvTGJHmIjhYDBt8s5lzWm6Y=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=MtbvkFtO+nFHRK4CEJXisbGdXxJGa6pEBRlmeUnWEYQqyRgKm8AzOeQzJdlakckJ5QkSjGOkI4V6laHylwAKiEz+ALXq9fMb4k8U7MWgUHNTp1UI4v7Zigc2tuvirc9RsKGCkCGYK8scl0vHf07xQ1zsNXrSN0wh9H+dhIFNwcY= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nQ3hxOjm; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=+ZZ7RcZx; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nQ3hxOjm; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=+ZZ7RcZx DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 566F54BB1C1F Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1FC8B22124 for ; Sun, 1 Nov 2026 14:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1793542074; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iHx7vqrWEwmljHwUq6F91a9U/WiwicfiyLkJIEcxGH8=; b=nQ3hxOjmf3J/YeJdEETYID3BqA/ni37IklkSUSE7VPNEx2EiS+lT2Z+0/7bo1BhE+8AYix 3C0TEzmUgIPBWOWz6uELV5g/L+nRSo0NReuA6Qvut7Y7ZxjNaQoD0bl2pUNDbFakTWBjhc ywtEUL6e+d3A42apPILnySqijz36p0g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1793542074; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iHx7vqrWEwmljHwUq6F91a9U/WiwicfiyLkJIEcxGH8=; b=+ZZ7RcZxEptoPwEUcmSb+Ybq/D4AOXXgMSqaPTmx3nULD6gVjc338pgQC/wbzVLR9iWSSg JF0fMx+IHPKu5+Bg== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=nQ3hxOjm; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=+ZZ7RcZx DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1793542074; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iHx7vqrWEwmljHwUq6F91a9U/WiwicfiyLkJIEcxGH8=; b=nQ3hxOjmf3J/YeJdEETYID3BqA/ni37IklkSUSE7VPNEx2EiS+lT2Z+0/7bo1BhE+8AYix 3C0TEzmUgIPBWOWz6uELV5g/L+nRSo0NReuA6Qvut7Y7ZxjNaQoD0bl2pUNDbFakTWBjhc ywtEUL6e+d3A42apPILnySqijz36p0g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1793542074; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iHx7vqrWEwmljHwUq6F91a9U/WiwicfiyLkJIEcxGH8=; b=+ZZ7RcZxEptoPwEUcmSb+Ybq/D4AOXXgMSqaPTmx3nULD6gVjc338pgQC/wbzVLR9iWSSg JF0fMx+IHPKu5+Bg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A99771364D for ; Sun, 1 Nov 2026 14:07:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id tjTFD7lH52owWgAAD6G6ig:T3 (envelope-from ) for ; Sun, 01 Nov 2026 14:07:53 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed 2/3] [gdb/testsuite] Fix remote host confusion in gdb.python/python.exp Date: Sun, 1 Nov 2026 15:07:48 +0100 Message-ID: <20261101140752.548879-3-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20261101140752.548879-1-tdevries@suse.de> References: <20261101140752.548879-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1FC8B22124 X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spamd-Result: default: False [-12.01 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[suse.de:+] X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org With host board local-remote-host, target board remote-gdbserver-on-localhost and test-case gdb.python/python.exp I run into: ... (gdb) Executing on local-remote-host: \ rm -f $outputs/gdb.python/python/source2-symlink.py (timeout = 300) builtin_spawn [open ...] rm: cannot remove '$outputs/gdb.python/python/source2-symlink.py': \ Permission denied XYZ1ZYX Executing on host: \ ln -sf $outputs/gdb.python/python/source2-symlink.py (timeout = 300) builtin_spawn [open ...] XYZ0ZYX source -s $outputs/gdb.python/python/source2-symlink.py \ $outputs/gdb.python/python/source2-symlink.py: No such file or directory. (gdb) FAIL: $exp: source -s source2-symlink.py ... There are two problems: - the remote download specifies a 'tofile' on build - the ln specifies a link name on build Fix these by: - using simply source2-symlink.notpy as 'tofile' - using host_standard_output_file to specify the link name on host --- gdb/testsuite/gdb.python/python.exp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 3adbef72001..f8a2e35c961 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -98,11 +98,12 @@ gdb_test "source $remote_source2_py" "yes" "source source2.py" gdb_test "source -s source2.py" "yes" set remote_source2_symlink_notpy \ - [gdb_remote_download host ${srcdir}/${subdir}/source2.py \ - [standard_output_file "source2-symlink.notpy"]] -set remote_source2_symlink_py [standard_output_file "source2-symlink.py"] + [gdb_remote_download host $srcdir/$subdir/source2.py source2-symlink.notpy] +set remote_source2_symlink_py [host_standard_output_file source2-symlink.py] remote_file host delete $remote_source2_symlink_py -set status [remote_exec host "ln -sf $remote_source2_symlink_notpy $remote_source2_symlink_py"] +set status \ + [remote_exec host \ + "ln -sf $remote_source2_symlink_notpy $remote_source2_symlink_py"] set test "source -s source2-symlink.py" if {[lindex $status 0] == 0} { gdb_test "source -s $remote_source2_symlink_py" "yes" $test -- 2.51.0