[lldb][NFC] Add tests for register command

llvm-svn: 369513
This commit is contained in:
Raphael Isemann 2019-08-21 10:40:05 +00:00
parent 7f581df649
commit 68756a8c37
1 changed files with 13 additions and 0 deletions

View File

@ -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"])