[pushed] testsuite: add verify-sarif-file to some testcases that were missing it

Message ID 20230530230028.3059482-1-dmalcolm@redhat.com
State Accepted
Headers
Series [pushed] testsuite: add verify-sarif-file to some testcases that were missing it |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

David Malcolm May 30, 2023, 11 p.m. UTC
  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(+)
  

Patch

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 } } */