From patchwork Thu Jan 26 16:02:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 48781 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp348376wrn; Thu, 26 Jan 2023 08:03:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXuT8QtVVMacAk+kDFayhFAcipbVM7R3WkCXjVn5TusytKOWJ39WDlwYVLcamw2ZyXYmgU7y X-Received: by 2002:a05:6402:1012:b0:46b:34a:3945 with SMTP id c18-20020a056402101200b0046b034a3945mr38307676edu.31.1674749020799; Thu, 26 Jan 2023 08:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674749020; cv=none; d=google.com; s=arc-20160816; b=BFWKsluEB9TrJAIvM1b/YQPns4wq+m/3ZsmYLzNob6ab8FgPns9XF9QY65XBjIzQCL AMPQfv48zsIYlbyF5ici8Tvhx8g5CNdo230Ghi6Ek3C3WbpNvlgYguZirXyRjVhrH/F6 GVgSrvYGXAmSYakiJa9TaXlhyiEljGUNrJ0aPOkOzdL1w6E6409zQo1lsIgaCxmBYKPz 2kOCdvy9lLPe9u5iM36Owq5sxGzT0yIwHordSk1u/h2jGj2FJVuV7vL1NehZMUzo0UNV OAJ/6E+Bab649jnMjS56dhUrpH6F3qT3LMor7NeX1JFJS2kehhoRWbKbBkTEhGdXPj8K ehNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:subject:mail-followup-to:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=ybp0RVQBnrW/REyVOkOr/HVjrd2Q3R1fIJ8Yhym3J6E=; b=Y6ViSzECIqN15Yvh2GA/J/RJDDRipYP6x2Me4zkjfMJIOqInKYoNOooDUJi2k9Png9 10bgUpJjF09LFI718/oDj0vsOo5O6Wsrw+0n4QDW6mUTQzqelkK9pRAyK1i1VhNEEjLV xX6oTQ0m5IF7PVkWEaHwS0ewyWb29Qw8iyLMtppYBFBYdoBmg1bWoZy3zl3ocYveL6i6 8TR4U5E/t0D4Atnf6x5wSoAUI14ROOmcne5q0fBF6mpj1ylhHfkN50KHafejVk/7HPXx yaRY+v1Vtr0yuEbLy8ikgK3rsYEULEisB/Lh032aiaFRrQ8GMMZUePIpa9slq9ddcIe3 EB7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=kk+ZToQN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id h30-20020a0564020e9e00b004a0ac03019bsi1925349eda.141.2023.01.26.08.03.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 08:03:40 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=kk+ZToQN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C40C63858404 for ; Thu, 26 Jan 2023 16:03:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C40C63858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674749019; bh=ybp0RVQBnrW/REyVOkOr/HVjrd2Q3R1fIJ8Yhym3J6E=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=kk+ZToQNjCmZPC3ngK7ZZ4a1/UrRMWpTE9zcUBJ+NVnacglwciHxgskkYLjjBrQbG +RJEHYi78cYk2vC50Pk6IayyduM/ZHnsqm/lyUbxJdkeMnhGK6PsSAAzEVITTnFUi2 ZSaaUmGLyVtyzmdtELEeluMVAwqsHt52DpAfG9QE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id BCABB3858D28 for ; Thu, 26 Jan 2023 16:02:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BCABB3858D28 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 417764B3 for ; Thu, 26 Jan 2023 08:03:36 -0800 (PST) Received: from localhost (e121540-lin.manchester.arm.com [10.32.99.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0ED833F64C for ; Thu, 26 Jan 2023 08:02:53 -0800 (PST) To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [PATCH] testsuite: Fix hwasan/arguments-3.c failures Date: Thu, 26 Jan 2023 16:02:52 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Spam-Status: No, score=-36.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Sandiford via Gcc-patches From: Richard Sandiford Reply-To: Richard Sandiford Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756101629437063019?= X-GMAIL-MSGID: =?utf-8?q?1756101629437063019?= This testcase had three dg-error tests for ".*.*". But since . matches \n in Tcl regexps, the first dg-error ate all the output, leaving the other two to fail. The regexp is eventually embedded in a larger one, so we can't prefix it with (?n). But the .*s aren't necessary, since dg-error tests for a partial rather than a full match. Tested on aarch64-linux-gnu & pushed as obvious. Richard gcc/testsuite/ * c-c++-common/hwasan/arguments-3.c: Remove extraneous .*s. --- gcc/testsuite/c-c++-common/hwasan/arguments-3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/c-c++-common/hwasan/arguments-3.c b/gcc/testsuite/c-c++-common/hwasan/arguments-3.c index 2bf8917355b..6dbec924e2b 100644 --- a/gcc/testsuite/c-c++-common/hwasan/arguments-3.c +++ b/gcc/testsuite/c-c++-common/hwasan/arguments-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ /* { dg-additional-options "-fsanitize=thread,address" } */ -/* { dg-error ".*'-fsanitize=thread' is incompatible with '-fsanitize=address'.*" "" { target *-*-* } 0 } */ -/* { dg-error ".*'-fsanitize=thread' is incompatible with '-fsanitize=hwaddress'.*" "" { target *-*-* } 0 } */ -/* { dg-error ".*'-fsanitize=hwaddress' is incompatible with '-fsanitize=address'.*" "" { target *-*-* } 0 } */ +/* { dg-error "'-fsanitize=thread' is incompatible with '-fsanitize=address'" "" { target *-*-* } 0 } */ +/* { dg-error "'-fsanitize=thread' is incompatible with '-fsanitize=hwaddress'" "" { target *-*-* } 0 } */ +/* { dg-error "'-fsanitize=hwaddress' is incompatible with '-fsanitize=address'" "" { target *-*-* } 0 } */