Fixed the assertion test case.

llvm-svn: 198962
This commit is contained in:
Greg Clayton 2014-01-10 22:22:44 +00:00
parent 14aa26bbb5
commit 9485dcfb1a
1 changed files with 6 additions and 2 deletions

View File

@ -169,9 +169,13 @@ class AssertingInferiorTestCase(TestBase):
self.runCmd("frame select " + str(frame.GetFrameID()), RUN_SUCCEEDED)
# TODO: Disassembly does not specify '->' for the PC for a non-terminal frame for a function with a tail call.
# Don't expect the function name to be in the disassembly as the assert
# function might be a no-return function where the PC is past the end
# of the function and in the next function. We also can't back the PC up
# because we don't know how much to back it up by on targets with opcodes
# that have differing sizes
self.expect("disassemble -a %s" % frame.GetPC(),
substrs = [frame.GetFunctionName()])
substrs = ['->'])
def check_expr_in_main(self, thread):
depth = thread.GetNumFrames()