https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/159559
>From 959edbe1add44159d473602d4151cf533cac4050 Mon Sep 17 00:00:00 2001 From: David Spickett <[email protected]> Date: Thu, 18 Sep 2025 12:51:55 +0100 Subject: [PATCH 1/2] [lldb][test] Disable a procfile test when threading is not enabled As is done for other procfile tests. --- lldb/unittests/Host/posix/SupportTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/unittests/Host/posix/SupportTest.cpp b/lldb/unittests/Host/posix/SupportTest.cpp index 5393ad83ad8ac..1b11f0caa0981 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,4 @@ 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) >From f95e9b99a8ae639744257a418bd9dd05a679751c Mon Sep 17 00:00:00 2001 From: David Spickett <[email protected]> Date: Thu, 18 Sep 2025 12:57:14 +0100 Subject: [PATCH 2/2] format --- lldb/unittests/Host/posix/SupportTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/unittests/Host/posix/SupportTest.cpp b/lldb/unittests/Host/posix/SupportTest.cpp index 1b11f0caa0981..ed2ff2082066e 100644 --- a/lldb/unittests/Host/posix/SupportTest.cpp +++ b/lldb/unittests/Host/posix/SupportTest.cpp @@ -38,4 +38,5 @@ TEST(Support, getProcFile_Tid) { ASSERT_TRUE(BufferOrError); ASSERT_TRUE(*BufferOrError); } -#endif // #if (defined(_AIX) || defined(__linux__)) && defined(LLVM_ENABLE_THREADING) +#endif // #if (defined(_AIX) || defined(__linux__)) && + // defined(LLVM_ENABLE_THREADING) _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
