]> granicus.if.org Git - graphviz/commitdiff
Add gvedit -? regression test
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sun, 6 Sep 2020 15:13:54 +0000 (17:13 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 11 Sep 2020 05:37:29 +0000 (07:37 +0200)
rtest/test_regression.py

index 23c74d341e789befedae952b7d77e349b2e69fbe..455d60b659d0da0deb6de1144d196507125fd5ce 100644 (file)
@@ -310,3 +310,14 @@ def test_1783():
     assert ret != 0, 'Graphviz accepted illegal edge weight'
 
     assert ret != -signal.SIGSEGV, 'Graphviz segfaulted'
+
+def test_1813():
+    '''
+    gvedit -? should show usage
+    https://gitlab.com/graphviz/graphviz/-/issues/1813
+    '''
+
+    output = subprocess.check_output(['gvedit', '-?'],
+      universal_newlines=True)
+
+    assert 'Usage' in output, 'gvedit -? did not show usage'