]> granicus.if.org Git - graphviz/commitdiff
add a test case for #2092
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 3 Feb 2022 01:02:06 +0000 (12:02 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Feb 2022 08:53:09 +0000 (19:53 +1100)
rtest/test_regression.py

index 5fe096c61bad62821fa51136638c136139ebf146..84dfdbb68bfc16179b7f2879267786492154810a 100644 (file)
@@ -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='<node id="">', 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 "