From 3ce09b31db6e30ceeecb1f8a414d9eb21f576079 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 6 Sep 2020 17:13:54 +0200 Subject: [PATCH] Add gvedit -? regression test --- rtest/test_regression.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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' -- 2.40.0