summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-07-06 10:02:56 +0000
committerTamas Berghammer <tberghammer@google.com>2015-07-06 10:02:56 +0000
commitb8d2e9e309d2e09a3b59184446234d18714981f5 (patch)
tree3add224a5366d75a885d48067987513a01c2ef32 /lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
parent8d53464472ad24824c453823a894e08baafd330e (diff)
downloadbcm5719-llvm-b8d2e9e309d2e09a3b59184446234d18714981f5.tar.gz
bcm5719-llvm-b8d2e9e309d2e09a3b59184446234d18714981f5.zip
Fix final wait in ExprSyscallTestCase for aarch64
llvm-svn: 241435
Diffstat (limited to 'lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py')
-rw-r--r--lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py b/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
index 42ef8f38db7..486fde177da 100644
--- a/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
+++ b/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
@@ -77,8 +77,10 @@ class ExprSyscallTestCase(TestBase):
process.Continue()
# process all events
- while listener.WaitForEvent(1, event):
- pass
+ while listener.WaitForEvent(10, event):
+ new_state = lldb.SBProcess.GetStateFromEvent(event)
+ if new_state == lldb.eStateExited:
+ break
self.assertEqual(process.GetState(), lldb.eStateExited)
self.assertEqual(process.GetExitStatus(), 0)
OpenPOWER on IntegriCloud