From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 97E903858CDB for ; Wed, 17 Jan 2024 11:23:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 97E903858CDB 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 97E903858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705490609; cv=none; b=tbvD6J8pQxxR+mZ5eiuYxRqMCZ+Sw7B/Iw9iQar4FSFOoQdjigykBz7FHaoAlaNZmxRB57Pzha2OK2WMbiRwOoMuTkbHu5kAT7+6hj4/mFtHpm5DJ0WaBwBBc60YsD8LkimQnmDWf9aouk0vvoRJule7ulrbpWQUNLcR8tXcxqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705490609; c=relaxed/simple; bh=ewUAVht7//6Mhw0FNSBIgheIFY2NOC6dE5oDTuAgZyo=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature: Message-ID:Date:MIME-Version:Subject:To:From; b=kf4D7QHUDfEuYzG5NKlo9SVwhw4gm6iSp2zXQwAhERb89qYHFl950ZCPU0zdwNgtA38+OubTslxrzAC+ov29y/KX54lkrMkneR8BguJA+751rbcF06M5Xgc1iXUdB2ChPDEj7PCPxkUFHXOOsKvkuKzqe/arjRadb+lfoRT9RFI= ARC-Authentication-Results: i=1; server2.sourceware.org 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 A791022238; Wed, 17 Jan 2024 11:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705490606; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CKWn6JGlkCBvNhJ8M3Ep/nXPtunEi0iPLhzzUkOPtz4=; b=lX8w8NYGFPRc7JMDOoVRRWb3lbMyb9CdvN4IX39ovJMzqIkBPrKjsbeTq0ece0EQfaSBNm yQ405/VJxj2jsj9c6TXETWcO3SkB3hRCOQZ528Woq7ij6wqYK8jUJAzDnlVX38p8L+2+bf ZvZYnV+nAbu5gb2Yzo9mMShNQPGR1AE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705490606; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CKWn6JGlkCBvNhJ8M3Ep/nXPtunEi0iPLhzzUkOPtz4=; b=+bYY1LaOmIpNy6FhuOQpqFlau30f5PaN7prkK9FFZQBfX4jawAlMlEBvVW1U+nUjK20pB8 ZFIp1ByxM0rGk/Bw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705490604; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CKWn6JGlkCBvNhJ8M3Ep/nXPtunEi0iPLhzzUkOPtz4=; b=JyWya6EU04E2LVaevESdA++iHswg+MbpuwhQAKJIW+edsEgKymwKrMJ9tVRBmEpu6w/NG6 ciKaEfR4bkqEG+sVRaphlnsCq/ixB3qHR+OKb5qxls27naFAe6HsVbhVRt+g+dDx5AOw0H FVOWOYRbuHYz2P6Ui/AnV9GSGfyfUFY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705490604; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CKWn6JGlkCBvNhJ8M3Ep/nXPtunEi0iPLhzzUkOPtz4=; b=pXmTJtFQHFTK9cJcrN0dWnHsEWf9Yf/8tlCKJ9hKptdepqFqNLuAHIpzCA7JP/uP431o0P hjWQStawZMJqdXAg== 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 91CF713751; Wed, 17 Jan 2024 11:23:24 +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 64pYIqy4p2XXQgAAD6G6ig (envelope-from ); Wed, 17 Jan 2024 11:23:24 +0000 Message-ID: <392f3495-5d71-4cba-b456-3484498f906c@suse.de> Date: Wed, 17 Jan 2024 12:24:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdb/testsuite: handle long filenames in gdb.base/startup-with-shell.exp Content-Language: en-US To: Andrew Burgess , gdb-patches@sourceware.org References: <8be51f9325a83a446404cf595bbe60b330af79e0.1705485491.git.aburgess@redhat.com> From: Tom de Vries In-Reply-To: <8be51f9325a83a446404cf595bbe60b330af79e0.1705485491.git.aburgess@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=JyWya6EU; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=pXmTJtFQ X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-2.91 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-0.41)[77.90%]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[suse.de:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[sourceware.org:url,suse.de:dkim,suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: -2.91 X-Rspamd-Queue-Id: A791022238 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 1/17/24 10:58, Andrew Burgess wrote: > I got a report of a failure from Linaro's CI testing for the test > gdb.base/startup-with-shell.exp. > > Looking at the log I see this: > > (gdb) PASS: gdb.base/startup-with-shell.exp: startup_with_shell = on; run_args = *.unique-extension: inferior started > print argv[1] > $1 = 0xfffed978 "/home/tcwg-build/workspace/tcwg_gnu_4/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/startup-with-shell/unique-file.unique-e"... > (gdb) FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = on; run_args = *.unique-extension: first argument expanded > > Notice that the value of $1 was truncated (indicated by the trailing > ellipses), and as a result it isn't going to match the expected output > pattern. > > Avoid this by adding a call to 'set print characters unlimited' which > allows GDB to print strings of any length. Hi Andrew, LGTM. I don't see the FAIL in my usual setup, but I managed to reproduce it by using "set print characters 20". FWIW, I noticed with target native-extended-gdbserver: ... FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = on; run_args = *.unique-extension: first argument expanded FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = on; run_args = $TEST: testing first argument ... but that's both with and without your patch. PR28392 ( https://sourceware.org/bugzilla/show_bug.cgi?id=28392 ) looks related. Approved-By: Tom de Vries Thanks, - Tom > --- > gdb/testsuite/gdb.base/startup-with-shell.exp | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gdb/testsuite/gdb.base/startup-with-shell.exp b/gdb/testsuite/gdb.base/startup-with-shell.exp > index b73d5d740f5..d5ec503dceb 100644 > --- a/gdb/testsuite/gdb.base/startup-with-shell.exp > +++ b/gdb/testsuite/gdb.base/startup-with-shell.exp > @@ -59,6 +59,7 @@ proc initial_setup_simple { startup_with_shell run_args } { > > with_test_prefix "startup_with_shell = on; run_args = *.unique-extension" { > initial_setup_simple "on" "$unique_file_dir/*.unique-extension" > + gdb_test_no_output "set print characters unlimited" > gdb_test "print argv\[1\]" "\\\$$decimal = $hex \"$unique_file\"" \ > "first argument expanded" > } > > base-commit: 1b346e50485ee450e8103e4b1704b43f61bc39f7