From: Pavel Labath Date: Fri, 22 May 2020 10:41:46 +0000 (+0200) Subject: [lldb] Increase timeout in TestExitDuringExpression X-Git-Tag: llvmorg-12-init~5363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=053b0634ea93b1ed7993adf34730bd752e9d84ec;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/lldb/test/API/functionalities/thread/exit_during_expression/main.c b/lldb/test/API/functionalities/thread/exit_during_expression/main.c index 66b6018..a3bf539 100644 --- a/lldb/test/API/functionalities/thread/exit_during_expression/main.c +++ b/lldb/test/API/functionalities/thread/exit_during_expression/main.c @@ -3,7 +3,7 @@ #include #include -static unsigned int g_timeout = 200; +static unsigned int g_timeout = 100000; int function_to_call() {