]> granicus.if.org Git - graphviz/commitdiff
add a test case for #1624
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 22 Jun 2022 02:38:30 +0000 (19:38 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Jun 2022 16:49:31 +0000 (09:49 -0700)
tests/1624.dot [new file with mode: 0644]
tests/test_regression.py

diff --git a/tests/1624.dot b/tests/1624.dot
new file mode 100644 (file)
index 0000000..ba8ae15
--- /dev/null
@@ -0,0 +1,18 @@
+digraph cluster {
+    node [ shape = "record"]
+
+    subgraph cluster_dc1 {
+        label = "dc1";
+        cas1
+        app1
+    }
+    subgraph cluster_dc2 {
+        label = "dc2";
+        cas2
+        app2
+    }
+    app1 -> cas1
+    app1 -> cas2
+    app2 -> cas1
+}
+
index ca89458ab7dabf0663bb82508c4a893dd61291a4..ec9b1f475337a5750175021867f9dbb70fee8ae1 100644 (file)
@@ -555,6 +555,20 @@ def test_1594():
   assert "line 3:" in stderr, \
     "GVPR did not identify correct line of syntax error"
 
+@pytest.mark.xfail(strict=True)
+def test_1624():
+  """
+  record shapes should be usable
+  https://gitlab.com/graphviz/graphviz/-/issues/1624
+  """
+
+  # locate our associated test case in this directory
+  input = Path(__file__).parent / "1624.dot"
+  assert input.exists(), "unexpectedly missing test case"
+
+  # process it with Graphviz
+  dot("svg", input)
+
 def test_1658():
   """
   the graph associated with this test case should not crash Graphviz