diff options
Diffstat (limited to 'lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py')
| -rw-r--r-- | lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py | 6 |
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) |

