diff --git a/paddle/phi/core/distributed/store/CMakeLists.txt b/paddle/phi/core/distributed/store/CMakeLists.txt index c22b793e000f9..7147c9956a60c 100644 --- a/paddle/phi/core/distributed/store/CMakeLists.txt +++ b/paddle/phi/core/distributed/store/CMakeLists.txt @@ -6,10 +6,3 @@ if(WITH_GLOO) endif() collect_srcs(core_srcs SRCS ${STORE_COMMON_SRCS}) - -if(NOT WIN32) - cc_test( - test_c_tcp_store - SRCS test_tcp_store.cc - DEPS phi common) -endif() diff --git a/test/cpp/phi/core/CMakeLists.txt b/test/cpp/phi/core/CMakeLists.txt index cd2c2f7229b39..192e752ab2713 100644 --- a/test/cpp/phi/core/CMakeLists.txt +++ b/test/cpp/phi/core/CMakeLists.txt @@ -82,3 +82,7 @@ else() SRCS test_mixed_vector.cc DEPS place phi common tensor) endif() + +if(NOT WIN32) + paddle_test(test_c_tcp_store SRCS test_tcp_store.cc DEPS phi common) +endif() diff --git a/paddle/phi/core/distributed/store/test_tcp_store.cc b/test/cpp/phi/core/test_tcp_store.cc similarity index 100% rename from paddle/phi/core/distributed/store/test_tcp_store.cc rename to test/cpp/phi/core/test_tcp_store.cc