Skip to content

Commit d024e7e

Browse files
committed
Add test for alias with incompatible options
1 parent ed4af56 commit d024e7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lldb/test/API/functionalities/abbreviation/TestAbbreviations.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ def test_command_abbreviations_and_aliases(self):
9494
self.assertTrue(result.Succeeded())
9595
self.assertEqual("scripting run 1+1", result.GetOutput())
9696

97+
# Name and line are incompatible options.
98+
command_interpreter.HandleCommand(
99+
"alias zzyx breakpoint set -n %1 -l %2", result
100+
)
101+
self.assertFalse(result.Succeeded())
102+
97103
# Prompt changing stuff should be tested, but this doesn't seem like the
98104
# right test to do it in. It has nothing to do with aliases or abbreviations.
99105
# self.runCmd("com sou ./change_prompt.lldb")

0 commit comments

Comments
 (0)