Skip to content

Commit c3d4998

Browse files
Fujimoto Seijiedsiper
authored andcommitted
tests: internal: fix a compilation error on FLB_STREAM_PROCESSOR=Off
Right now, the following command fails with a compile error. $ cmake -DFLB_DEV=On -DFLB_STREAM_PROCESSOR=Off .. $ make ... error: struct flb_config’ has no member named ‘stream_processor_tasks This is just due to cmake trying to compile the test suite for stream processor even when the feature is NOT available (FLB_STREAM_PROCESSOR=Off). This fixes it. Signed-off-by: Fujimoto Seiji <[email protected]>
1 parent 6512d25 commit c3d4998

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/internal/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ set(UNIT_TESTS_FILES
1414
hashtable.c
1515
http_client.c
1616
utils.c
17-
stream_processor.c
1817
)
1918

19+
if(FLB_STREAM_PROCESSOR)
20+
set(UNIT_TESTS_FILES
21+
${UNIT_TESTS_FILES}
22+
stream_processor.c
23+
)
24+
endif()
25+
2026
if(FLB_METRICS)
2127
set(UNIT_TESTS_FILES
2228
${UNIT_TESTS_FILES}

0 commit comments

Comments
 (0)