From: Matthew Fernandez Date: Sat, 19 Jun 2021 16:57:46 +0000 (-0700) Subject: add a test case for #14 X-Git-Tag: 2.48.0~33^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8745bb477432a92dfb81cae04ea6f8111cceab85;p=graphviz add a test case for #14 --- diff --git a/rtest/14.dot b/rtest/14.dot new file mode 100644 index 000000000..fa9760173 --- /dev/null +++ b/rtest/14.dot @@ -0,0 +1,5 @@ +digraph g { + layout=twopi + splines=ortho + a -> b +} diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 5c50b7e73..04c390bdd 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -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