Tests: Port check_vio_ext to Windows

This commit is contained in:
Hannah von Reth 2020-07-16 11:59:44 +02:00 committed by Kevin Ottens
parent 47dc7e6c49
commit 3dcbc9fa66
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2
2 changed files with 4 additions and 4 deletions

View file

@ -50,10 +50,6 @@ else()
)
endif()
if(NOT HAVE_ASPRINTF AND NOT HAVE___MINGW_ASPRINTF)
list(APPEND csync_SRCS std/asprintf.c)
endif()
if (USE_OUR_OWN_SQLITE3)
list(APPEND csync_SRCS ${SQLITE3_SOURCE})
endif()

View file

@ -25,6 +25,10 @@ add_cmocka_test(check_std_c_str std_tests/check_std_c_str.c ${TEST_TARGET_LIBRAR
# vio
add_cmocka_test(check_vio_ext vio_tests/check_vio_ext.cpp ${TEST_TARGET_LIBRARIES})
if(NOT HAVE_ASPRINTF AND NOT HAVE___MINGW_ASPRINTF)
target_sources(check_vio_ext PRIVATE ${PROJECT_SOURCE_DIR}/src/csync/std/asprintf.c)
endif()
# encoding
add_cmocka_test(check_encoding_functions encoding_tests/check_encoding.cpp ${TEST_TARGET_LIBRARIES})