From 722fd32d9fc499f2acf0c689d0b0414e100e519f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 3 Feb 2022 12:02:06 +1100 Subject: [PATCH] add a test case for #2092 --- rtest/test_regression.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 " -- 2.40.0