Skip to content

Commit f504347

Browse files
authored
Merge pull request #11244 from charles-zablit/charles-zablit/lldb/disable-protocol-test-windows
[windows] change deactivation method for ProtocolMCPServerTest.cpp
2 parents c39f620 + 016b89f commit f504347

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

lldb/unittests/Protocol/CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
set(PROTOCOL_TEST_SOURCES
2-
ProtocolMCPTest.cpp
3-
)
4-
5-
if(NOT WIN32)
6-
list(APPEND PROTOCOL_TEST_SOURCES ProtocolMCPServerTest.cpp)
7-
endif()
8-
91
add_lldb_unittest(ProtocolTests
10-
${PROTOCOL_TEST_SOURCES}
2+
ProtocolMCPTest.cpp
3+
ProtocolMCPServerTest.cpp
114

125
LINK_LIBS
136
lldbCore

lldb/unittests/Protocol/ProtocolMCPServerTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
8+
#ifndef _WIN32 // DISABLE TEST ON WINDOWS
99
#include "Plugins/Platform/MacOSX/PlatformRemoteMacOSX.h"
1010
#include "Plugins/Protocol/MCP/MCPError.h"
1111
#include "Plugins/Protocol/MCP/ProtocolServerMCP.h"
@@ -325,3 +325,4 @@ TEST_F(ProtocolServerMCPTest, NotificationInitialized) {
325325
std::unique_lock<std::mutex> lock(mutex);
326326
cv.wait(lock, [&] { return handler_called; });
327327
}
328+
#endif // DISABLE TEST ON WINDOWS

0 commit comments

Comments
 (0)