Skip to content

Commit 9c8d204

Browse files
labathjimingham
authored andcommitted
[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.
1 parent 7606653 commit 9c8d204

File tree

1 file changed

+1
-1
lines changed
  • lldb/test/API/functionalities/thread/exit_during_expression

1 file changed

+1
-1
lines changed

lldb/test/API/functionalities/thread/exit_during_expression/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdio.h>
44
#include <unistd.h>
55

6-
static unsigned int g_timeout = 200;
6+
static unsigned int g_timeout = 100000;
77

88
int function_to_call() {
99

0 commit comments

Comments
 (0)