Fixed a typo and supplied a more appropriate assert message.

llvm-svn: 114232
This commit is contained in:
Johnny Chen 2010-09-17 22:45:27 +00:00
parent ec06c124f1
commit aa90292126
2 changed files with 4 additions and 2 deletions

View File

@ -109,7 +109,7 @@ class FoundationTestCase(TestBase):
substrs = ["ARG: (MyString *) self",
"ARG: (struct objc_selector *) _cmd"])
self.expect("expr self->non_existent_member", VARIABLES_DISPLAYED_CORRECTLY, error=True,
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'")
self.expect("frame variable self->str", VARIABLES_DISPLAYED_CORRECTLY,

View File

@ -113,6 +113,8 @@ else:
# Some commonly used assert messages.
#
COMMAND_FAILED_AS_EXPECTED = "Command has failed as expected"
CURRENT_EXECUTABLE_SET = "Current executable set successfully"
PROCESS_IS_VALID = "Process is valid"
@ -408,7 +410,7 @@ class TestBase(unittest2.TestCase):
If the keyword argument error is set to True, it signifies that the API
client is expecting the command to fail. In this case, the error stream
from running the command is retrieved and compared againt the golden
from running the command is retrieved and compared against the golden
input, instead.
"""
trace = (True if traceAlways else trace)