]> granicus.if.org Git - graphviz/commitdiff
add a test case for #14
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Jun 2021 16:57:46 +0000 (09:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 03:57:06 +0000 (20:57 -0700)
rtest/14.dot [new file with mode: 0644]
rtest/test_regression.py

diff --git a/rtest/14.dot b/rtest/14.dot
new file mode 100644 (file)
index 0000000..fa97601
--- /dev/null
@@ -0,0 +1,5 @@
+digraph g {
+    layout=twopi
+    splines=ortho
+    a -> b
+}
index 5c50b7e734054964514c78ad094e88b169e04223..04c390bdd65c6248cd3f1ebde9bb35988d64171c 100644 (file)
@@ -55,6 +55,20 @@ def test_regression_failure():
 # FIXME: re-enable when all tests pass on all platforms
 #    assert result.returncode == 0
 
+@pytest.mark.xfail(strict=not is_ndebug_defined()) # FIXME
+def test_14():
+  """
+  using ortho and twopi in combination should not cause an assertion failure
+  https://gitlab.com/graphviz/graphviz/-/issues/14
+  """
+
+  # locate our associated test case in this directory
+  input = Path(__file__).parent / "14.dot"
+  assert input.exists(), "unexpectedly missing test case"
+
+  # process it with Graphviz
+  subprocess.check_call(["dot", "-Tsvg", "-o", os.devnull, input])
+
 def test_131():
   """
   PIC back end should produce valid output