From: Matthew Fernandez Date: Thu, 3 Feb 2022 01:02:06 +0000 (+1100) Subject: add a test case for #2092 X-Git-Tag: 3.0.0~43^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=722fd32d9fc499f2acf0c689d0b0414e100e519f;p=graphviz add a test case for #2092 --- diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 5fe096c61..84dfdbb68 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -1235,6 +1235,17 @@ def test_2089_2(): # run it _, _ = run_c(c_src, link=["cgraph"]) +@pytest.mark.skipif(shutil.which("dot2gxl") is None, + reason="dot2gxl not available") +@pytest.mark.xfail(strict=True) # FIXME +def test_2092(): + """ + an empty node ID should not cause a dot2gxl NULL pointer dereference + https://gitlab.com/graphviz/graphviz/-/issues/2092 + """ + subprocess.run(["dot2gxl", "-d"], input='', check=True, + universal_newlines=True) + @pytest.mark.skipif(os.environ.get("build_system") == "msbuild" and os.environ.get("configuration") == "Debug", reason="Graphviz built with MSBuild in Debug mode has an "