Fix check in TestNoreturnUnwind

llvm-svn: 233546
This commit is contained in:
Tamas Berghammer 2015-03-30 14:05:37 +00:00
parent d3ac79b3b4
commit ab6216d050
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class NoreturnUnwind(TestBase):
# I'm going to assume that abort() ends up calling/invoking another
# function before halting the process. In which case if abort_frame_number
# equals 0, we didn't find abort() in the backtrace.
if abort_frame_number == 0:
if abort_frame_number == len(thread.frames):
self.fail("Unable to find abort() in backtrace.")
func_c_frame_number = abort_frame_number + 1