[Lldb-commits] [lldb] r370503 - [lldb][NFC] More tests for invalid register command invocations
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 30 12:19:26 PDT 2019
Author: teemperor
Date: Fri Aug 30 12:19:25 2019
New Revision: 370503
URL: http://llvm.org/viewvc/llvm-project?rev=370503&view=rev
Log:
[lldb][NFC] More tests for invalid register command invocations
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=370503&r1=370502&r2=370503&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 Fri Aug 30 12:19:25 2019
@@ -488,3 +488,18 @@ class RegisterCommandsTestCase(TestBase)
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"])
+
+ self.expect("register write a", error=True,
+ substrs=["register write takes exactly 2 arguments: <reg-name> <value>"])
+ self.expect("register write a b c", error=True,
+ substrs=["register write takes exactly 2 arguments: <reg-name> <value>"])
+
+ @skipIfiOSSimulator
+ @skipIf(archs=no_match(['amd64', 'arm', 'i386', 'x86_64']))
+ @expectedFailureNetBSD
+ def test_write_unknown_register(self):
+ self.build()
+ self.common_setup()
+
+ self.expect("register write blub 1", error=True,
+ substrs=["error: Register not found for 'blub'."])
More information about the lldb-commits
mailing list