Skip to content

Commit 90c340a

Browse files
committed
[lldb[test] Fix compiler warning in AdbClientTest.cpp
C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\unittests\Platform\Android\AdbClientTest.cpp(100,17): warning: unused function 'FindUnusedPort' [-Wunused-function] Function is used by a test that is disabled on Windows.
1 parent c28992a commit 90c340a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/unittests/Platform/Android/AdbClientTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ TEST_F(AdbClientTest, AdbSyncService_OperationsFailWhenNotConnected) {
9797
EXPECT_TRUE(push_result.Fail());
9898
}
9999

100+
#ifndef _WIN32
100101
static uint16_t FindUnusedPort() {
101102
auto temp_socket = std::make_unique<TCPSocket>(true);
102103
Status error = temp_socket->Listen("localhost:0", 1);
@@ -108,7 +109,6 @@ static uint16_t FindUnusedPort() {
108109
return port;
109110
}
110111

111-
#ifndef _WIN32
112112
// This test is disabled on Windows due to platform-specific socket behavior
113113
// that causes assertion failures in TCPSocket::Listen()
114114
TEST_F(AdbClientTest, RealTcpConnection) {

0 commit comments

Comments
 (0)