[Lldb-commits] [lldb] 1fc9b34 - [lldb][test] Disable a procfile test when threading is not enabled (#159559)

via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 18 05:01:59 PDT 2025


Author: David Spickett
Date: 2025-09-18T13:01:55+01:00
New Revision: 1fc9b344889aeb1f83cfee29f61d844ec927a5cd

URL: https://github.com/llvm/llvm-project/commit/1fc9b344889aeb1f83cfee29f61d844ec927a5cd
DIFF: https://github.com/llvm/llvm-project/commit/1fc9b344889aeb1f83cfee29f61d844ec927a5cd.diff

LOG: [lldb][test] Disable a procfile test when threading is not enabled (#159559)

As is done for other procfile tests.

Added: 
    

Modified: 
    lldb/unittests/Host/posix/SupportTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/Host/posix/SupportTest.cpp b/lldb/unittests/Host/posix/SupportTest.cpp
index 5393ad83ad8ac..ed2ff2082066e 100644
--- a/lldb/unittests/Host/posix/SupportTest.cpp
+++ b/lldb/unittests/Host/posix/SupportTest.cpp
@@ -26,7 +26,7 @@ TEST(Support, getProcFile_Pid) {
 }
 #endif // #ifndef __APPLE__
 
-#if defined(_AIX) || defined(__linux__)
+#if (defined(_AIX) || defined(__linux__)) && defined(LLVM_ENABLE_THREADING)
 TEST(Support, getProcFile_Tid) {
   auto BufferOrError = getProcFile(getpid(), llvm::get_threadid(),
 #ifdef _AIX
@@ -38,4 +38,5 @@ TEST(Support, getProcFile_Tid) {
   ASSERT_TRUE(BufferOrError);
   ASSERT_TRUE(*BufferOrError);
 }
-#endif // #if defined(_AIX) || defined(__linux__)
+#endif // #if (defined(_AIX) || defined(__linux__)) &&
+       // defined(LLVM_ENABLE_THREADING)


        


More information about the lldb-commits mailing list