From b8d2e9e309d2e09a3b59184446234d18714981f5 Mon Sep 17 00:00:00 2001 From: Tamas Berghammer Date: Mon, 6 Jul 2015 10:02:56 +0000 Subject: Fix final wait in ExprSyscallTestCase for aarch64 llvm-svn: 241435 --- .../expression_command/expr-in-syscall/TestExpressionInSyscall.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py') 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) -- cgit v1.2.3