From: Matthew Fernandez Date: Sat, 5 Jun 2021 01:10:17 +0000 (-0700) Subject: add a test case for #2082 X-Git-Tag: 2.47.3~13^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa34d039c04fb59a4e27727b78764343a3eaa93b;p=graphviz add a test case for #2082 --- diff --git a/rtest/2082.dot b/rtest/2082.dot new file mode 100644 index 000000000..4a0590024 --- /dev/null +++ b/rtest/2082.dot @@ -0,0 +1,22 @@ +digraph "Grouped Workers" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Grouped Workers" nodesep=0.60 pad=2.0 rankdir=TB ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + e1fd845a83e841e98a47939a50a5649d [label=lb height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/network/elastic-load-balancing.png" shape=none] + "9ecc9661ac624e31b06a5bd0fdb1d896" [label=worker1 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none] + cfabeae2444d467eaf50711080f396f2 [label=worker2 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none] + "7c6d3e67b21c442397a6f22adf92bde3" [label=worker3 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none] + ebab3ee997594b25971b9c8cc5527035 [label=worker4 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none] + "02c4e90c3fc645e4b0e8f0e5bef12694" [label=worker5 height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/compute/ec2.png" shape=none] + e1fd845a83e841e98a47939a50a5649d -> "9ecc9661ac624e31b06a5bd0fdb1d896" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + e1fd845a83e841e98a47939a50a5649d -> cfabeae2444d467eaf50711080f396f2 [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + e1fd845a83e841e98a47939a50a5649d -> "7c6d3e67b21c442397a6f22adf92bde3" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + e1fd845a83e841e98a47939a50a5649d -> ebab3ee997594b25971b9c8cc5527035 [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + e1fd845a83e841e98a47939a50a5649d -> "02c4e90c3fc645e4b0e8f0e5bef12694" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + "2fbd65667241455bb04da4ffb465db70" [label=events height=1.9 image="/Users/srajagopalan/.pyenv/versions/3.9.0/lib/python3.9/site-packages/resources/aws/database/rds.png" shape=none] + "9ecc9661ac624e31b06a5bd0fdb1d896" -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + cfabeae2444d467eaf50711080f396f2 -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + "7c6d3e67b21c442397a6f22adf92bde3" -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + ebab3ee997594b25971b9c8cc5527035 -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] + "02c4e90c3fc645e4b0e8f0e5bef12694" -> "2fbd65667241455bb04da4ffb465db70" [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] +} diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 96849fab8..5dc374d4a 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -816,6 +816,21 @@ def test_2078(): assert "subgraph" in stderr.lower(), "subgraph not mentioned in error message" +@pytest.mark.xfail() +def test_2082(): + """ + Check a bug in inside_polygon has not been reintroduced. + https://gitlab.com/graphviz/graphviz/-/issues/2082 + """ + + # locate our associated test case in this directory + input = Path(__file__).parent / "2082.dot" + assert input.exists(), "unexpectedly missing test case" + + # ask Graphviz to process it, which should generate an assertion failure if + # this bug has been reintroduced + subprocess.check_call(["dot", "-Tpng", "-o", os.devnull, input]) + def test_package_version(): """ The graphviz_version.h header should define a non-empty PACKAGE_VERSION