From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 9C64B3857001 for ; Wed, 7 Jun 2023 09:37:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C64B3857001 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D013A1FDAA for ; Wed, 7 Jun 2023 09:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686130641; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=tPeVliz9bQCg/sjSLYq4zUg7YK5uXLgbY6UfNXBIax4=; b=JRa4IdJtyPqM4PcTQld7m7j+1RTSkWQXaO1grHeftA8NgRarxzcjIpkAdtVVEuWU/tqfH2 sSGHdkk+/ysr7dEYztITFIagricxnPfBRpLvQzfSKlXKaM3V9FJ3KrnmjPi6AeCoxqPrEn WkCkll7+ZFZAdwb2W6sFnsNVO466kuY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686130641; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=tPeVliz9bQCg/sjSLYq4zUg7YK5uXLgbY6UfNXBIax4=; b=EN2KHN9I8z7Cv3li33EOO8dNFvDmgP2fsR/pYRVYfL+W8kZLNDU76+e/4XXufqN0JIxoPk aG2e/iq/zcRvZWBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BDE5713776 for ; Wed, 7 Jun 2023 09:37:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kyI+LdFPgGT8YwAAMHmgww (envelope-from ) for ; Wed, 07 Jun 2023 09:37:21 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed] [gdb/testsuite] Handle output after prompt in gdb.threads/step-N-all-progress.exp Date: Wed, 7 Jun 2023 11:37:26 +0200 Message-Id: <20230607093726.17444-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Using "taskset -c 0" I run into this timeout: ... (gdb) PASS: gdb.threads/step-N-all-progress.exp: non-stop=on: \ target-non-stop=on: continue to breakpoint: break here next 3^M [New Thread 0x7ffff7dbd6c0 (LWP 10202)]^M 50 return 0;^M (gdb) [Thread 0x7ffff7dbd6c0 (LWP 10202) exited]^M FAIL: gdb.threads/step-N-all-progress.exp: non-stop=on: target-non-stop=on: \ next 3 (timeout) ... The problem is that this test: ... gdb_test "next 3" "return 0;" ... expects no output after the prompt. Fix this by using -no-prompt-anchor. Tested on x86_64-linux. --- gdb/testsuite/gdb.threads/step-N-all-progress.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.threads/step-N-all-progress.exp b/gdb/testsuite/gdb.threads/step-N-all-progress.exp index 98cc8423f34..485028d34e7 100644 --- a/gdb/testsuite/gdb.threads/step-N-all-progress.exp +++ b/gdb/testsuite/gdb.threads/step-N-all-progress.exp @@ -44,7 +44,7 @@ proc test {non-stop target-non-stop} { gdb_continue_to_breakpoint "break here" - gdb_test "next 3" "return 0;" + gdb_test -no-prompt-anchor "next 3" "return 0;" } foreach_with_prefix non-stop {off on} { base-commit: c6cad198b15e90df947921b58a0f052635050b4d -- 2.35.3