Author: tberghammer Date: Mon Jul 6 05:02:56 2015 New Revision: 241435 URL: http://llvm.org/viewvc/llvm-project?rev=241435&view=rev Log: Fix final wait in ExprSyscallTestCase for aarch64
Modified: lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py Modified: lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py?rev=241435&r1=241434&r2=241435&view=diff ============================================================================== --- lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py (original) +++ lldb/trunk/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py Mon Jul 6 05:02:56 2015 @@ -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) _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits