From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AS51BwxI52qtny4AWB0awg (envelope-from ) for ; Sun, 01 Nov 2026 09:09:16 -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=gKwMDsHR; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0PYF+Ymk; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=gKwMDsHR; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0PYF+Ymk; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 10197378002; Sun, 01 Nov 2026 09:09:16 -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 16CC4378002 for ; Sun, 01 Nov 2026 09:09:07 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 941024BB1C3B for ; Sun, 1 Nov 2026 14:09:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 941024BB1C3B 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=gKwMDsHR; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0PYF+Ymk; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=gKwMDsHR; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0PYF+Ymk Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id 2A2B14BB1C1D for ; Sun, 1 Nov 2026 14:07:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A2B14BB1C1D 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 2A2B14BB1C1D Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793542075; cv=none; b=CZqrWay1cWzoNAK4Xl4Q+EX277RKmEiiePCKOyyyTReXvnfaym8smc7Ty0RVwC6cjKd7zJ79esDi1U3TezIdV03Jxhqj8NoZlaP8cyFJkUQUd3tGfVWSPAT1ckUUpAb08zXTXgr49D2KtTbgtEZnEL4cnK/rLGA5QD7sEPaIoUo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793542075; c=relaxed/simple; bh=kaJODxoxFnlvWOzBTzqW98qALurTMK1EqiXp9vFEKb4=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=qMeOYh6W6pETlNOTdFyyIaUmrJ0yQr8zt0i/rlD2ZWtsWmRdzNw3zMkmXad3BXxr1xu06y+JT4RoolmecaZcrhY6SRzONWoLteZGUY29Dlqe8mawAoSCwe2Bojul9sxLSWakWcSSEKfrRs8o3CPk0DP4jdMj3BE61gi2wsJuI34= 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=gKwMDsHR; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0PYF+Ymk; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=gKwMDsHR; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0PYF+Ymk DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A2B14BB1C1D Received: from imap1.dmz-prg2.suse.org (unknown [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 0C4AE220AA 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=reM9o28b+n0nHir2BBS6wKAIe2Jizwl8h8FgeKHF9us=; b=gKwMDsHR6c/NCXqnmjTrxhZxLHipV8Zzp9j8hw2NOkZ2d9EP3Xk4Xf/ADZyZFrlB0yD7hf oUMCn15xs6lzFhUyrIyDYSnj18ZKMBWwbFWUzcjJ5mAr2p5g09JDwvn+76FL2jvg8XZpzK KrVCzQ+a0MoK9LMgFYikUESeo7kZbSI= 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=reM9o28b+n0nHir2BBS6wKAIe2Jizwl8h8FgeKHF9us=; b=0PYF+YmkMZe0z1I3YpbGDgS3S1e20RQsytZNnK3ZM0gKtMZ9O2ZzfjeZ90cS5WAGcAGPbI SajgYa+ZKVibNSCQ== Authentication-Results: smtp-out1.suse.de; none 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=reM9o28b+n0nHir2BBS6wKAIe2Jizwl8h8FgeKHF9us=; b=gKwMDsHR6c/NCXqnmjTrxhZxLHipV8Zzp9j8hw2NOkZ2d9EP3Xk4Xf/ADZyZFrlB0yD7hf oUMCn15xs6lzFhUyrIyDYSnj18ZKMBWwbFWUzcjJ5mAr2p5g09JDwvn+76FL2jvg8XZpzK KrVCzQ+a0MoK9LMgFYikUESeo7kZbSI= 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=reM9o28b+n0nHir2BBS6wKAIe2Jizwl8h8FgeKHF9us=; b=0PYF+YmkMZe0z1I3YpbGDgS3S1e20RQsytZNnK3ZM0gKtMZ9O2ZzfjeZ90cS5WAGcAGPbI SajgYa+ZKVibNSCQ== 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 8FF4013637 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:T2 (envelope-from ) for ; Sun, 01 Nov 2026 14:07:53 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed 1/3] [gdb/testsuite] Handle help() timeout in gdb.python/python.exp Date: Sun, 1 Nov 2026 15:07:47 +0100 Message-ID: <20261101140752.548879-2-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-Spamd-Result: default: False [-11.80 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[] 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 I ran into the following timeout in test-case gdb.python/python.exp: ... (gdb) python >help() >end FAIL: $exp: python interactive help: python; help(); end (timeout) define zzq Welcome to Python 3.13's help utility! If this is your first time using Python, you should definitely check out the tutorial at https://docs.python.org/3.13/tutorial/. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To get a list of available modules, keywords, symbols, or topics, enter "modules", "keywords", "symbols", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose name or summary contain a given string such as "spam", enter "modules spam". To quit this help utility and return to the interpreter, enter "q", "quit" or "exit". help> No Python documentation found for 'define zzq'. ... The timeout means that gdb is stuck at the "help>" prompt, making all the following tests fail. Fix this using a clean_restart. --- gdb/testsuite/gdb.python/python.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index 63225cff8c6..3adbef72001 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -74,6 +74,10 @@ with_test_prefix "python interactive help" { } } +# A timeout in the previous test would have gdb stuck at the "help>" prompt, +# causing all following tests to fail. Start a clean session. +clean_restart + gdb_test_multiline "show python command" \ "define zzq" "Type commands for definition of .* just \"end\"\\.*" \ "python" "" \ -- 2.51.0