On Sat, 2024-06-22 at 11:26 +0300, Dimitar Dimitrov wrote:
> On Fri, Jun 21, 2024 at 08:55:36AM -0400, David Malcolm wrote:
> > This patch extends the dg directive verify-sarif-file so that if
> > the "jsonschema" tool is available, it will be used to validate the
> > generated .sarif file.
> > 
> > Tested with jsonschema 3.2 with Python 3.8
> 
> Hi David,
> 
> The new testcase fails on my Fedora 40 with jsonschema 4.19.1 and
> Python
> 3.12.3:
> 
> ```
> Executing on host: jsonschema --version    (timeout = 300)
> spawn -ignore SIGHUP jsonschema --version
> /usr/bin/jsonschema:5: DeprecationWarning: The jsonschema CLI is
> deprecated and will be removed in a future version. Please use check-
> jsonschema instead, which can be installed from
> https://pypi.org/project/check-jsonschema/
>   from jsonschema.cli import main
> 4.19.1
> FAIL: c-c++-common/analyzer/malloc-sarif-1.c (test .sarif output
> against SARIF schema)
> ```

Sorry about that.

> 
> The deprecation warning output seems to confuse DejaGnu and it fails
> the test.

Thanks for the heads-up; I'll upgrade my machine to a less ancient
version and update the patch accordingly.

Dave

Reply via email to