[Lldb-commits] [lldb] r241435 - Fix final wait in ExprSyscallTestCase for aarch64
Tamas Berghammer
tberghammer at google.com
Mon Jul 6 03:02:56 PDT 2015
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)
More information about the lldb-commits
mailing list