From: Magnus Jacobsson Date: Sun, 6 Sep 2020 15:13:54 +0000 (+0200) Subject: Add gvedit -? regression test X-Git-Tag: 2.46.0~20^2^2~88^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ce09b31db6e30ceeecb1f8a414d9eb21f576079;p=graphviz Add gvedit -? regression test --- diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 23c74d341..455d60b65 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -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'