public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1420] testsuite: add verify-sarif-file to some testcases that were missing it
@ 2023-05-30 22:58 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2023-05-30 22:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e4c8f7024f02d8e223c6df7bd117e7615a553918
commit r14-1420-ge4c8f7024f02d8e223c6df7bd117e7615a553918
Author: David Malcolm <dmalcolm@redhat.com>
Date: Tue May 30 18:57:57 2023 -0400
testsuite: add verify-sarif-file to some testcases that were missing it
gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/malloc-sarif-1.c: Add missing verify-sarif-file
directive.
* gcc.dg/analyzer/sarif-pr107366.c: Likewise.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diff:
---
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 } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-30 22:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 22:58 [gcc r14-1420] testsuite: add verify-sarif-file to some testcases that were missing it David Malcolm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).