diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-09-30 18:02:47 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-09-30 18:02:47 +0000 |
| commit | a92bf08038f497e94707b0c6bf9461dc5ae9ea63 (patch) | |
| tree | 6b151af21e06c8c6152b6f8458b9975653db973c /lldb/test/foundation/TestObjCMethods.py | |
| parent | 7e872969ce63b6f1ecb8e2644b4f76f9ba7ec97e (diff) | |
| download | bcm5719-llvm-a92bf08038f497e94707b0c6bf9461dc5ae9ea63.tar.gz bcm5719-llvm-a92bf08038f497e94707b0c6bf9461dc5ae9ea63.zip | |
Test new feature with r115115:
Add "-o" option to "expression" which prints the object description if available.
llvm-svn: 115182
Diffstat (limited to 'lldb/test/foundation/TestObjCMethods.py')
| -rw-r--r-- | lldb/test/foundation/TestObjCMethods.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/foundation/TestObjCMethods.py b/lldb/test/foundation/TestObjCMethods.py index aa88ad1d0b4..860131da603 100644 --- a/lldb/test/foundation/TestObjCMethods.py +++ b/lldb/test/foundation/TestObjCMethods.py @@ -111,6 +111,12 @@ class FoundationTestCase(TestBase): substrs = ["ARG: (MyString *) self", "ARG: (struct objc_selector *) _cmd"]) + # Test new feature with r115115: + # Add "-o" option to "expression" which prints the object description if available. + self.expect("expr -o -- self", "Object description displayed correctly", + startstr = "Hello from ", + substrs = ["a.out", "with timestamp: "]) + self.expect("expr self->non_existent_member", COMMAND_FAILED_AS_EXPECTED, error=True, startstr = "error: 'MyString' does not have a member named 'non_existent_member'") |

