From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by sourceware.org (Postfix) with ESMTPS id 907C1386C5B1 for ; Wed, 26 Jun 2024 07:05:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 907C1386C5B1 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 907C1386C5B1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:2 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719385539; cv=none; b=FpyuBJQd/3FCtNSoeAMXDOYqv0lMQggCW0JnYC9MIMOncjPrIWpwviyG/oA1nhSG+kR7ExY6rhRYn2qvR+9JG2aX03QMFq1Ar1/dgdMoulP8xe5/+eGTQ+u1aUg0XrfU90QjdMa9L/iPSKtMnLFpsZXd6iQZoTPetFbp4u2GnVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719385539; c=relaxed/simple; bh=OUygRK4W9CkuXCw12cHtMXmtJQ2DAXXbTXOZotqxB8A=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-Id:MIME-Version; b=qjentpVLoYA/AEBZu0L3zhWg/VQ55w/gv9dw9yWul4yYSvJexJrCAvu+whMty8z81IbsrMbQjeeK3eSPIqVX4oOBwvV5MimlB7h7td9nPvyTKm119+VwIZ5lGRPhSy6Y04/2C3UXvxedD1HIYWQRybI+SVP94tWexMMIO3HQEww= ARC-Authentication-Results: i=1; server2.sourceware.org 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-out2.suse.de (Postfix) with ESMTPS id 41CF21FB44 for ; Wed, 26 Jun 2024 07:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1719385536; 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=BNiP+f11Wxm6eg+iJU6wfsVcu8lHMvwPu42tE4ztjfw=; b=NCNI11lWyX6Mbqj12xW5o0OHzJx4GRPNf5ovSnitQfqv5ISW9TUsb7/9Aw8K2QJbUBqmvk L8rVUbZ2V4jfaLVOAiXpSsjLNUXXwCU8uLRqvU/ASKXrHAmeQmeSAqWzEmyJZogfNBeiaB AdOn2k+MaNW0DRaa2GshO5OhbUecdTg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1719385536; 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=BNiP+f11Wxm6eg+iJU6wfsVcu8lHMvwPu42tE4ztjfw=; b=prWBAMoOvyhXKCqbLVGtL+KoIMvDvO7TuK65OX9569sCkM8cBcFFXjhzyrwb0jjQnPNXAs lAjYik3DAqivEiAw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1719385536; 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=BNiP+f11Wxm6eg+iJU6wfsVcu8lHMvwPu42tE4ztjfw=; b=NCNI11lWyX6Mbqj12xW5o0OHzJx4GRPNf5ovSnitQfqv5ISW9TUsb7/9Aw8K2QJbUBqmvk L8rVUbZ2V4jfaLVOAiXpSsjLNUXXwCU8uLRqvU/ASKXrHAmeQmeSAqWzEmyJZogfNBeiaB AdOn2k+MaNW0DRaa2GshO5OhbUecdTg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1719385536; 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=BNiP+f11Wxm6eg+iJU6wfsVcu8lHMvwPu42tE4ztjfw=; b=prWBAMoOvyhXKCqbLVGtL+KoIMvDvO7TuK65OX9569sCkM8cBcFFXjhzyrwb0jjQnPNXAs lAjYik3DAqivEiAw== 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 2AF2913AAD for ; Wed, 26 Jun 2024 07:05:36 +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 8qQFCcC9e2YWQgAAD6G6ig (envelope-from ) for ; Wed, 26 Jun 2024 07:05:36 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed] [gdb/testsuite] Minor cleanup in gdb.base/bg-execution-repeat.exp Date: Wed, 26 Jun 2024 09:05:22 +0200 Message-Id: <20240626070522.13389-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.44 X-Spam-Level: X-Spamd-Result: default: False [-2.44 / 50.00]; BAYES_HAM(-2.64)[98.42%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; 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]; RCVD_TLS_ALL(0.00)[] X-Spam-Status: No, score=-12.4 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 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: Simplify a gdb_test_multiple in test-case gdb.base/bg-execution-repeat.exp using "gdb_test -no-prompt-anchor". Suggested-By: Guinevere Larsen Tested on x86_64-linux. --- gdb/testsuite/gdb.base/bg-execution-repeat.exp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/gdb/testsuite/gdb.base/bg-execution-repeat.exp b/gdb/testsuite/gdb.base/bg-execution-repeat.exp index 35ddb34cd8f..61f26f30f46 100644 --- a/gdb/testsuite/gdb.base/bg-execution-repeat.exp +++ b/gdb/testsuite/gdb.base/bg-execution-repeat.exp @@ -41,14 +41,9 @@ proc test {continue_cmd} { gdb_breakpoint "$linenum" - set test $continue_cmd - gdb_test_multiple $test $test { - -re "Continuing\\.\r\n$gdb_prompt " { - # Note no end anchor. If the breakpoint triggers soon enough - # enough we see further output after the prompt. - pass $test - } - } + # If the breakpoint triggers soon enough we see further output after the + # prompt, so no prompt anchor. + gdb_test -no-prompt-anchor $continue_cmd [string_to_regexp "Continuing."] # Wait for the stop. Don't expect a prompt, as we had resumed the # inferior in the background. base-commit: c44008bda2fdc743312b0f6e56198ea0a8cfd079 -- 2.35.3