[Lldb-commits] [lldb] [llvm] [llvm][lldb] Add check for incorrect target features (PR #180901)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 11 02:48:38 PST 2026


================
@@ -0,0 +1,40 @@
+"""
+Test for lldb disassemble command with -Y option and invalid parameters.
+This test verifies that disassemble -Y command properly reports error messages
+when invoked with incorrect options.
+"""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import TestBase
+from lldbsuite.test import lldbutil
+
+
+class TestDisassembleInvalidTargetFeatures(TestBase):
+    """Test disassemble -Y option error handling."""
+
+    def run_invalid_disasm_cmd(self, option, expected_error):
----------------
DavidSpickett wrote:

It's more option_value than option, if you use the `--features` long name then you could change this from option to features.

https://github.com/llvm/llvm-project/pull/180901


More information about the lldb-commits mailing list