From patchwork Tue Nov 28 18:21:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 80942 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4E2A6385AC25 for ; Tue, 28 Nov 2023 18:21:37 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id DC90A3861809 for ; Tue, 28 Nov 2023 18:21:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DC90A3861809 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DC90A3861809 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701195673; cv=none; b=mMOH8y9MWzuX3eHdzA6DEWWPFJsFWWpm7eK6KCi5uKULSH74eqQPirfLNQCTOweKWH0zUtof1EnG3AzrmN1nbdCKkJgt/eG3ck9iFZzOjVuM5Dh3IWOqAvbUqgdN1eHYjvaEPlRM4XF4/+2vbF0ET7AFjTqjfg5oczKkzNiehg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701195673; c=relaxed/simple; bh=SpeNO/NPqJ0FUot21tpOb/dd7asWPyQCKAOPg2Z1Fm0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=nJMiEXmzqXERZWg9/j8n95OEi6nXrnLnwrmKAxUCL6fTOzSM8o2wPATXF4aQUpNjoY0ivzATFyOA/gK1br/rMZSgjWRNz8QCnUhJ7FzYjZTOnX9Tqs38lCk+P9sagMCEoyUrfKkzmZuRCfnj5VHI55QThJzsiYK+HwDKOVC3+Ec= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701195671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W88cT2MgO8NMB6JhuPrVlgEDcG8nZXoubHym9o8VQAw=; b=C3l8lVTSUGURmgHdKtb9iDQfGv0Hq1Ov1VDlXvof7ysJChihqLUX6KShI2wDzvABq3wQ5L E14O6SuVn8oBCsnITgPd/Tg4P5BGjGkB0rmqjy9bjSVVrXEE7/dGrOAAUdSlkBdW7Oo42O HUYnuCjMPMznC+QnbhMdsIxACsQq++A= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-323-vzQ76ggQMLu_JW7QLJKm6Q-1; Tue, 28 Nov 2023 13:21:09 -0500 X-MC-Unique: vzQ76ggQMLu_JW7QLJKm6Q-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-333127fecf9so379988f8f.2 for ; Tue, 28 Nov 2023 10:21:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701195668; x=1701800468; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W88cT2MgO8NMB6JhuPrVlgEDcG8nZXoubHym9o8VQAw=; b=CS/mvQSV9bQWtVXuf3z6Ftr3QX1EzjXjgzDAwg8P5VY4vElyqrck3i32XGIwroP48w coscxhp/6lZ6ThTghJSgx/Y74sjQYMJn6i5aUg71qVsg7liXOfgjKzDY6KQyQQg4tFX6 +I4FfalUKTAfIY10iRxo+fQe/1xND+1jbOjRuhCKl9LUG0m1awy1wtzwlBiZ+a8jQNvJ UpBmuZZFMBWk7XkcIRplHtP8BnVpafFaGcQVxXc6yTODGZ93oHsgpfMPrfxPV9sVY3xs PBWHj/xfJid5g8DyymD9FGv/heSyzzyT+ds3MdajBgt0l9R3ZGCrHuMKfMEGcumX7cyE xFCg== X-Gm-Message-State: AOJu0YyLOoshBNQ5mX/dDYVBlxBECzJYGMHyMzhpPjVOWfmjVchZPzrP E/EF+ec5MXmycXyfIjSYsZenQwAwDj5pbyTO0kzOE4oLPghtr510Y9nzUUKSiE1sLQTkelutv4d 6v43ayqiPKbij0zcwwAieVFvQbJpxVsGU+dvDYWWa46wze6oDwONJXAjrat4YetBDKK3kRsXHVy VaCUcRmQ== X-Received: by 2002:a05:6000:18cb:b0:332:fbb4:c773 with SMTP id w11-20020a05600018cb00b00332fbb4c773mr6283595wrq.43.1701195668461; Tue, 28 Nov 2023 10:21:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFK9aNc54D8TyWLGC1s6Il56N7oRXvvYqtIWuvm38FKqFGA7rf0I7TFRQmio2fLaGFbXwWjJw== X-Received: by 2002:a05:6000:18cb:b0:332:fbb4:c773 with SMTP id w11-20020a05600018cb00b00332fbb4c773mr6283576wrq.43.1701195667979; Tue, 28 Nov 2023 10:21:07 -0800 (PST) Received: from localhost (105.226.159.143.dyn.plus.net. [143.159.226.105]) by smtp.gmail.com with ESMTPSA id x1-20020adfec01000000b00332cfd83b8dsm15658023wrn.96.2023.11.28.10.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 10:21:07 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PUSHED] gdb/testsuite: improve test regexp in gdb_get_worker_threads Date: Tue, 28 Nov 2023 18:21:05 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 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+patchwork=sourceware.org@sourceware.org I spotted I made a small mistake in this commit: commit aff250145af6c7a8ea9332bc1306c1219f4a63db Date: Fri Nov 24 12:04:36 2023 +0000 gdb: generate gdb-index identically regardless of work thread count In this commit I added a new proc in testsuite/lib/gdb.exp called gdb_get_worker_threads. This proc uses gdb_test_multiple with two possible patterns. One pattern is anchored with '^', while the other is missing the '^' which it could use. This commit adds the missing '^'. --- gdb/testsuite/lib/gdb.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 0f2fd473202983f368bfc4a4fa1c365c231c4b2f diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index b534a61d066..d0990dcfe0e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -10034,7 +10034,7 @@ proc gdb_get_worker_threads { {testname ""} } { -wrap -re "^The number of worker threads GDB can use is unlimited \\(currently ($::decimal)\\)\\." { set worker_threads $expect_out(1,string) } - -wrap -re "The number of worker threads GDB can use is ($::decimal)\\." { + -wrap -re "^The number of worker threads GDB can use is ($::decimal)\\." { set worker_threads $expect_out(1,string) } }