Skip to content

Commit 91eb773

Browse files
committed
tests: internal: Disable cumulative delta case because of unistd.h
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent d257e00 commit 91eb773

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/internal/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,14 @@ if(FLB_METRICS)
118118
set(UNIT_TESTS_FILES
119119
${UNIT_TESTS_FILES}
120120
metrics.c
121-
cumulative_to_delta.c
122121
)
122+
123+
if (NOT WIN32)
124+
set(UNIT_TESTS_FILES
125+
${UNIT_TESTS_FILES}
126+
cumulative_to_delta.c
127+
)
128+
endif()
123129
endif()
124130

125131
if(FLB_HTTP_SERVER)
@@ -256,7 +262,7 @@ endfunction(prepare_unit_tests)
256262

257263
prepare_unit_tests(flb-it- "${UNIT_TESTS_FILES}")
258264

259-
if(FLB_METRICS AND FLB_PROCESSOR_CUMULATIVE_TO_DELTA)
265+
if(FLB_METRICS AND FLB_PROCESSOR_CUMULATIVE_TO_DELTA AND NOT WIN32)
260266
set(CUMULATIVE_TO_DELTA_PLUGIN_DIR
261267
${PROJECT_SOURCE_DIR}/plugins/processor_cumulative_to_delta)
262268
set(CUMULATIVE_TO_DELTA_CORE_SOURCE

0 commit comments

Comments
 (0)