forked from OSchip/llvm-project
[lldb][NFC] Add tests for register command
llvm-svn: 369513
This commit is contained in:
parent
7f581df649
commit
68756a8c37
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue