store test: do not compile LocalStoreTest on Windows

Summary: The test doesn't compile on Windows, let's just ifdef it.

Reviewed By: genevievehelsel

Differential Revision: D25033804

fbshipit-source-id: 4f312f010f9d0db42cc9ae19df3f668e8e1c4665
This commit is contained in:
Xavier Deguillard 2020-11-18 14:37:41 -08:00 committed by Facebook GitHub Bot
parent 9eca0f83a7
commit 78fc38e27b
2 changed files with 4 additions and 11 deletions

View File

@ -4,17 +4,6 @@
# GNU General Public License version 2.
file(GLOB STORE_TEST_SRCS "*.cpp")
if (WIN32)
# TODO: T66530055
# Adding the RocksDb test causes the test binary to not load properly.
# The LocalStore test fails to compile on Windows.
list(
REMOVE_ITEM STORE_TEST_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/RocksDbLocalStoreTest.cpp
${CMAKE_CURRENT_SOURCE_DIR}/LocalStoreTest.cpp
)
endif()
add_executable(
eden_store_test
${STORE_TEST_SRCS}

View File

@ -5,6 +5,8 @@
* GNU General Public License version 2.
*/
#ifndef _WIN32
#include "eden/fs/store/test/LocalStoreTest.h"
#include "eden/fs/store/MemoryLocalStore.h"
#include "eden/fs/store/SqliteLocalStore.h"
@ -199,3 +201,5 @@ INSTANTIATE_TEST_CASE_P(
::testing::Values(makeSqliteLocalStore));
} // namespace
#endif