[lldb] Increase timeout in TestExitDuringExpression

200 microseconds is not enough time for any expression to execute
reliably. On linux, calling pthread_exit can result in call to dlopen,
which cannot complete in that time, particularly when running under a
debugger.

On linux, this test failed all the time, on macos, about two thirds of
runs were failing.  This patch increases the timeout to 100ms, which is
enough to get it passing reliably on linux, though I wouldn't be
surprised if an even bigger timeout would be needed for remote test
runs.
This commit is contained in:
Pavel Labath 2020-05-22 12:41:46 +02:00
parent e95ee300c0
commit 053b0634ea
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <unistd.h>
static unsigned int g_timeout = 200;
static unsigned int g_timeout = 100000;
int function_to_call() {