mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
4038c01e9f
Summary: The skip_on_mode_mac argument to cpp_unittest doesn't exist on Windows, and to be consistent with the rest of the code, we can simply ifdef the code that either doesn't compile, or doesn't run. Note: For some reason the accessIncrementsAccessCount test fails when running on Windows, but only if running after accessAddsProcessToProcessNameCache... Reviewed By: chadaustin Differential Revision: D24496450 fbshipit-source-id: fe18fe1d791a27fbe4bd03bd3e8c811feeb23f5f
30 lines
627 B
CMake
30 lines
627 B
CMake
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
file(GLOB UTILS_TEST_SRCS "*Test.cpp")
|
|
|
|
add_executable(eden_utils_test ${UTILS_TEST_SRCS})
|
|
target_link_libraries(
|
|
eden_utils_test
|
|
PUBLIC
|
|
eden_inodes
|
|
eden_utils
|
|
eden_utils_test_lib
|
|
eden_testharness
|
|
Folly::folly_test_util
|
|
${LIBGMOCK_LIBRARIES}
|
|
)
|
|
gtest_discover_tests(eden_utils_test)
|
|
|
|
add_library(
|
|
eden_utils_test_lib STATIC
|
|
ScopedEnvVar.h
|
|
ScopedEnvVar.cpp
|
|
)
|
|
target_link_libraries(
|
|
eden_utils_test_lib
|
|
Folly::folly
|
|
)
|