[Lldb-commits] [lldb] [lldb] Fixed the TestExitDuringExpression test in case of a remote target (PR #93119)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Wed May 22 17:57:44 PDT 2024


https://github.com/slydiman created https://github.com/llvm/llvm-project/pull/93119

Sometimes this test failed on the assert `The thread exited` in case of a remote target. Increase the timeout to 1 second to avoid a racing condition.

>From c51c200295425167d664197bc4c15d02ec91ed09 Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
Date: Thu, 23 May 2024 04:56:26 +0400
Subject: [PATCH] [lldb] Fixed the TestExitDuringExpression test in case of a
 remote target

Sometimes this test failed on the assert `The thread exited` in case of a remote target. Increase the timeout to 1 second to avoid a racing condition.
---
 .../API/functionalities/thread/exit_during_expression/main.c    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 eb6d17520986c..f633632e96cc4 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 <stdio.h>
 #include <unistd.h>
 
-static unsigned int g_timeout = 100000;
+static unsigned int g_timeout = 1000000;
 
 extern int usleep(unsigned int);
 



More information about the lldb-commits mailing list