Test new feature with r115115:

Add "-o" option to "expression" which prints the object description if available.

llvm-svn: 115182
This commit is contained in:
Johnny Chen 2010-09-30 18:02:47 +00:00
parent 7e872969ce
commit a92bf08038
1 changed files with 6 additions and 0 deletions

View File

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