From patchwork Tue May 30 23:00:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 101144 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2513490vqr; Tue, 30 May 2023 16:01:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rDpPvAEyrc1WMNwUl4MW4shvxnbmYUZUWvVikqJvmhs54UcndxPkj7mjufKoUUNfsmCfp X-Received: by 2002:aa7:c406:0:b0:510:e902:9690 with SMTP id j6-20020aa7c406000000b00510e9029690mr2623755edq.33.1685487678900; Tue, 30 May 2023 16:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685487678; cv=none; d=google.com; s=arc-20160816; b=Y0RG8bW2WX+cef9tuR1gnXMP7izmV3+Oyx1ryzulIrvgxFDu4tkhHAJ5wwZVkATbrZ MnGDbeoTgWCpbX+ldz1Ex807R4R71hOXWSuqWtEgeZjnkx3EfIuYLM4kEssHTd+BzTZk 62TgqZzY/xMAfbZANFmUWzjWZTnqQxSup+z00bjfcvXRbX02oRc5eMpH/xtoczjYZMnD D9NeJbxdDDe+4Xmkku5fbHFUop+6Mqi5wfRSibWUk7HKic0pCE6shlmCM40Pe5tyM3TY 9nlFuVYJWeuAGwup2Zx2H94tRbdwhE46acHTdpzWo3PzMX4kpWciKMGbC1OpanHDL6TH Ld3g== 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 :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=FPI4a9IJmPuicJMFb97pu3NwPnPKmR33vSpyPLK3D7o=; b=OR8DE3tM+eoPDWb/JT/APhdtAIk7a7deiq5DtjZtICA/O76roDHhaL2/YPi6QDTfpJ lMu8l0PTLr0msG89RGQp2CnXBpHSFoS/EboF/fspeDSwIoTa8/8SSAxZm+qIZm0kdBsj Js8YZk14Kcn68F53fLEyHNhqEdAZRD37CraLTNEROI1RIX9kPBb+xG0WG0TKLrMaKjUE PL9N0vJLBjdRi0J77LhSSPAkSMpYud0gROQr65+aoKKH0YvqRON2qIOGKxesCc0e2Pwr KRCgOiZLT5C/GkxcRy8o2MXQbJLwzqe/GQZgiAuYsFn3iFVmdng6BIdz8kTzPP5/TUZK RD0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=fCtRNzHr; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id n7-20020aa7db47000000b00514945a72e4si4438169edt.87.2023.05.30.16.01.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 16:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=fCtRNzHr; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 8EF68385770B for ; Tue, 30 May 2023 23:01:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EF68385770B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685487677; bh=FPI4a9IJmPuicJMFb97pu3NwPnPKmR33vSpyPLK3D7o=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=fCtRNzHrfBqodA38hTQ/b/E864wlSHs/I5pXfHnBMdPuI8PcbJbFLYPI5JPqgiIcN jxyYvoERdxjN5mpdVEXPlk6S3Gi50SQz2mRq8NNL6NCHfkn3vDgjOk2F3EhI6z6b9b c17s47KjW0J0BUBgVtu6zwItzfwotB8TJJV7/T4A= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.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 590793858D20 for ; Tue, 30 May 2023 23:00:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 590793858D20 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-495-fuQKjrtmPHucRwy5rLWMUg-1; Tue, 30 May 2023 19:00:30 -0400 X-MC-Unique: fuQKjrtmPHucRwy5rLWMUg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7653C1C06904 for ; Tue, 30 May 2023 23:00:30 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.16.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 503FB492B00; Tue, 30 May 2023 23:00:30 +0000 (UTC) To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [pushed] testsuite: add verify-sarif-file to some testcases that were missing it Date: Tue, 30 May 2023 19:00:28 -0400 Message-Id: <20230530230028.3059482-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.8 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, 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: 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: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm 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?1767361928224289508?= X-GMAIL-MSGID: =?utf-8?q?1767361928224289508?= Pushed to trunk as r14-1420-ge4c8f7024f02d8. gcc/testsuite/ChangeLog: * gcc.dg/analyzer/malloc-sarif-1.c: Add missing verify-sarif-file directive. * gcc.dg/analyzer/sarif-pr107366.c: Likewise. --- gcc/testsuite/gcc.dg/analyzer/malloc-sarif-1.c | 2 ++ gcc/testsuite/gcc.dg/analyzer/sarif-pr107366.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gcc/testsuite/gcc.dg/analyzer/malloc-sarif-1.c b/gcc/testsuite/gcc.dg/analyzer/malloc-sarif-1.c index 3d141b53f47..3d798e687e6 100644 --- a/gcc/testsuite/gcc.dg/analyzer/malloc-sarif-1.c +++ b/gcc/testsuite/gcc.dg/analyzer/malloc-sarif-1.c @@ -12,6 +12,8 @@ void test_1 (void) /* Verify SARIF output. + { dg-final { verify-sarif-file } } + The threadFlowLocation objects should have "kinds" properties reflecting the meanings of the events: { dg-final { scan-sarif-file "\"kinds\": \\\[\"acquire\", \"memory\"\\\]" } } diff --git a/gcc/testsuite/gcc.dg/analyzer/sarif-pr107366.c b/gcc/testsuite/gcc.dg/analyzer/sarif-pr107366.c index 997cf56586d..ee156d4df23 100644 --- a/gcc/testsuite/gcc.dg/analyzer/sarif-pr107366.c +++ b/gcc/testsuite/gcc.dg/analyzer/sarif-pr107366.c @@ -18,3 +18,4 @@ hwloc_apply_diff_one() { } } +/* { dg-final { verify-sarif-file } } */