summaryrefslogtreecommitdiffstats
path: root/test/t/unit/test_unit_load.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/unit/test_unit_load.py')
-rw-r--r--test/t/unit/test_unit_load.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/t/unit/test_unit_load.py b/test/t/unit/test_unit_load.py
index 3515703..5513041 100644
--- a/test/t/unit/test_unit_load.py
+++ b/test/t/unit/test_unit_load.py
@@ -128,3 +128,6 @@ class TestCompLoad:
# The in-tree `sh` completion should be loaded here,
# and cause no output, unlike our `$PWD/prefix1/bin/sh` canary.
assert_bash_exec(bash, "_comp_load sh", want_output=False)
+
+ def test_option_like_cmd_name(self, bash):
+ assert_bash_exec(bash, "! _comp_load -- --non-existent")