diff options
| author | Greg Clayton <gclayton@apple.com> | 2014-01-10 22:22:44 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2014-01-10 22:22:44 +0000 |
| commit | 9485dcfb1a7500fa0e15c71c4c27919c9e2924a7 (patch) | |
| tree | 61b6c291d2b452c2317dfcac99f99b16ced88332 | |
| parent | 14aa26bbb5a0cc69be701f1d1a90f610c57eeef7 (diff) | |
| download | bcm5719-llvm-9485dcfb1a7500fa0e15c71c4c27919c9e2924a7.tar.gz bcm5719-llvm-9485dcfb1a7500fa0e15c71c4c27919c9e2924a7.zip | |
Fixed the assertion test case.
llvm-svn: 198962
| -rw-r--r-- | lldb/test/functionalities/inferior-assert/TestInferiorAssert.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py index c4baf5d9f2f..a8ce779434f 100644 --- a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py +++ b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py @@ -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() |

