[Lldb-commits] [lldb] r369513 - [lldb][NFC] Add tests for register command

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 21 03:40:06 PDT 2019


Author: teemperor
Date: Wed Aug 21 03:40:05 2019
New Revision: 369513

URL: http://llvm.org/viewvc/llvm-project?rev=369513&view=rev
Log:
[lldb][NFC] Add tests for register command

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/register/register_command/TestRegisters.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/register/register_command/TestRegisters.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/register/register_command/TestRegisters.py?rev=369513&r1=369512&r2=369513&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/register/register_command/TestRegisters.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/register/register_command/TestRegisters.py Wed Aug 21 03:40:05 2019
@@ -475,3 +475,16 @@ class RegisterCommandsTestCase(TestBase)
         if test_16bit_regs:
             self.expect("expr -- $ax == (($ah << 8) | $al)",
                         substrs=['true'])
+
+    @skipIfiOSSimulator
+    @skipIf(archs=no_match(['amd64', 'arm', 'i386', 'x86_64']))
+    @expectedFailureNetBSD
+    def test_invalid_invocation(self):
+        self.build()
+        self.common_setup()
+
+        self.expect("register read -a arg", error=True,
+                    substrs=["the --all option can't be used when registers names are supplied as arguments"])
+
+        self.expect("register read --set 0 r", error=True,
+                    substrs=["the --set <set> option can't be used when registers names are supplied as arguments"])




More information about the lldb-commits mailing list