Skip to content

Commit 1fc9b34

Browse files
[lldb][test] Disable a procfile test when threading is not enabled (#159559)
As is done for other procfile tests.
1 parent f68f3b9 commit 1fc9b34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/unittests/Host/posix/SupportTest.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ TEST(Support, getProcFile_Pid) {
2626
}
2727
#endif // #ifndef __APPLE__
2828

29-
#if defined(_AIX) || defined(__linux__)
29+
#if (defined(_AIX) || defined(__linux__)) && defined(LLVM_ENABLE_THREADING)
3030
TEST(Support, getProcFile_Tid) {
3131
auto BufferOrError = getProcFile(getpid(), llvm::get_threadid(),
3232
#ifdef _AIX
@@ -38,4 +38,5 @@ TEST(Support, getProcFile_Tid) {
3838
ASSERT_TRUE(BufferOrError);
3939
ASSERT_TRUE(*BufferOrError);
4040
}
41-
#endif // #if defined(_AIX) || defined(__linux__)
41+
#endif // #if (defined(_AIX) || defined(__linux__)) &&
42+
// defined(LLVM_ENABLE_THREADING)

0 commit comments

Comments
 (0)