diff --git a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py index 1fd4806cd74f4..f0a3893f53aab 100644 --- a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py +++ b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py @@ -12,8 +12,6 @@ class TestMultipleSimultaneousDebuggers(TestBase): NO_DEBUG_INFO_TESTCASE = True - # Sometimes times out on Linux, see https://github.com/llvm/llvm-project/issues/101162. - @skipIfLinux @skipIfNoSBHeaders @skipIfWindows @skipIfHostIncompatibleWithTarget diff --git a/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp b/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp index 64728fb7c29a1..5ad75e3c1e472 100644 --- a/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp +++ b/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp @@ -296,6 +296,9 @@ int main (int argc, char **argv) NUMBER_OF_SIMULTANEOUS_DEBUG_SESSIONS); } - SBDebugger::Terminate(); - exit (1); + // We do not call SBDebugger::Terminate() here because it will destroy + // data that might be being used by threads that are still running. Which + // would change the timeout into an unrelated crash. + // _exit instead of exit, to skip more things that could cause a crash. + _exit(1); }