From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 44vKMt5H52qtny4AWB0awg (envelope-from ) for ; Sun, 01 Nov 2026 09:08:30 -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=KhdwfDph; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=vnPgb3Rl; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=EtY1Cbd3; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=8bBlLLOO; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1605F378002; Sun, 01 Nov 2026 09:08:30 -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 BBAB3378002 for ; Sun, 01 Nov 2026 09:08:23 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5889B4BB5883 for ; Sun, 1 Nov 2026 14:08:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5889B4BB5883 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=KhdwfDph; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=vnPgb3Rl; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=EtY1Cbd3; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=8bBlLLOO Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id 3AE674BB1C21 for ; Sun, 1 Nov 2026 14:07:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3AE674BB1C21 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 3AE674BB1C21 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793542076; cv=none; b=MEkcp03WONkHcKn8200q7rYhhpaHDfKS888ckegrE/DsLtKwRgFXhID46tkB89rpymT21t8UJ7/h+R24S1TXB0gsc6v/lLmFGYZgZBUqndb4COLQlpQJTPl5twurI5yyoPq7hBfR+cmX7dLAUQuc5EwAr1SHK3ZQe0dSpp98ky0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793542076; c=relaxed/simple; bh=84F0uciebzNbZZKNLODXzsHehNhhrJP8+DL0xPxCawM=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=IbiAB7iIaT9xwk/WrL/ZF8yyzdwOCNd5Y7vspQ+OgnxBWHpap1GHhgJhfpjv6I9LrT+3DExCtu4uwwq6yHa/wzpUtgMW3oY3VsaklI8L7564okJnd+yyUvrVXUuxceJR+0MLN73DqPR8qG3vUtEmzli0FHMEKFL7LV8+yzAssYA= 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=KhdwfDph; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=vnPgb3Rl; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=EtY1Cbd3; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=8bBlLLOO DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AE674BB1C21 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-out2.suse.de (Postfix) with ESMTPS id 36C8D1F78F 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=1793542075; 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=t2/7jQkG+yls+ax64dKFLn+NoXjsd0UgcFEfMkfu7qM=; b=KhdwfDphKOr/kZ0o6RNDluMnp8Xz5vUho4KmAxcqEbIQyy3Nd2IPs1cdwHTUDY+tA+9fUw 3Kr3YWcMiTOE0SR4j9w7MhJuIGcy1jjkdPJoWX6NoutVAM2qtOJuVCM9D/wQidQeXaLlyG 8ncvyBzd0x+Wqh6MNuQ65jWVn6h77Pc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1793542075; 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=t2/7jQkG+yls+ax64dKFLn+NoXjsd0UgcFEfMkfu7qM=; b=vnPgb3Rla8OEXvRhuBO1aq1NMac7Njnq9n/hiNxlE6eWdnvswZvExoWe3HWNP8FXVcgM0M bO9nOvNE3n5/luBQ== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=EtY1Cbd3; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=8bBlLLOO 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-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t2/7jQkG+yls+ax64dKFLn+NoXjsd0UgcFEfMkfu7qM=; b=EtY1Cbd3g31ofeKCzj0bo0Mfrx/3aOjCQ6hwc/4ClLv4hIk+5xF8v3bvw6LGLWoX9h6M8s RxxD6Va11YoifcQcowEZgIbsv9yUD1mzr2DWb+Z40wbKTM8T5qzguTtrNwQkuLLbY3pVu2 +YSK4o5HB+85Ja4x3go4woENlPd6X/8= 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-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t2/7jQkG+yls+ax64dKFLn+NoXjsd0UgcFEfMkfu7qM=; b=8bBlLLOOr5WFRsjZAHYadE6suBPkgYcUqBtGKALhv1Dfj39XIZ8XjV7oD4Oamy+Rb6Hzu2 q/BBvxEr2bWoYcBA== 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 C2DA213664 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:T4 (envelope-from ) for ; Sun, 01 Nov 2026 14:07:53 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed 3/3] [gdb/testsuite] Disable part of gdb.python/python.exp for !readline_is_used Date: Sun, 1 Nov 2026 15:07:49 +0100 Message-ID: <20261101140752.548879-4-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 36C8D1F78F X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spamd-Result: default: False [-12.51 / 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_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)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; SUBJECT_HAS_EXCLAIM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; 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-notty, target board remote-gdbserver-on-localhost and test-case gdb.python/python.exp I ran into: ... (gdb) python gdb.execute('set logging enabled on')^M FAIL: $exp: enable logging via python (timeout) ... The problem is that there's no visible prompt because of the combination of "set editing off" (due to using local-remote-host-notty) and logging. I don't know whether this is a bug or not. I've filed a PR [1] about this. Regardless, this problem is not specific to python, so just skip the logging part of the test-case if !readline_is_used. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=34926 --- gdb/testsuite/gdb.python/python.exp | 41 ++++++++++++++++------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index f8a2e35c961..b34e4f61c31 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -575,21 +575,26 @@ foreach type {Instruction LazyString Membuf Record RecordFunctionSegment \ "gdb.$type is registered" } -set logfile [host_standard_output_file gdb.txt] -gdb_test_no_output "set logging file $logfile" \ - "set logging file [file tail $logfile]" -gdb_test_no_output "set logging redirect on" \ - "enable logging redirect via python" -gdb_test_no_output "python gdb.execute('set logging enabled on')" \ - "enable logging via python" - -# Even with logging redirect on, this should capture the output. -gdb_test_no_output "python x = gdb.execute('print 23', to_string=True)" \ - "print from python with logging redirect" - -gdb_test "set logging enabled off" \ - "Done logging to .*gdb.txt." \ - "disable logging" - -gdb_test "python print(x)" " = 23.*" \ - "python still captured output" +# The combination of logging and !readline_is_used means we don't get a +# visible prompt (PR cli/34926), so skip this part. +set readline_is_used [readline_is_used] +if {$readline_is_used} { + set logfile [host_standard_output_file gdb.txt] + gdb_test_no_output "set logging file $logfile" \ + "set logging file [file tail $logfile]" + gdb_test_no_output "set logging redirect on" \ + "enable logging redirect via python" + gdb_test_no_output "python gdb.execute('set logging enabled on')" \ + "enable logging via python" + + # Even with logging redirect on, this should capture the output. + gdb_test_no_output "python x = gdb.execute('print 23', to_string=True)" \ + "print from python with logging redirect" + + gdb_test "set logging enabled off" \ + "Done logging to .*gdb.txt." \ + "disable logging" + + gdb_test "python print(x)" " = 23.*" \ + "python still captured output" +} -- 2.51.0