From 93b34981fa6f82e49ffe90ba8b6f0fefbfba281e Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 24 Jul 2018 23:26:45 +0200 Subject: test1148: disable if decimal separator is not point Modifying the locale with environment variables doesn't work for native Windows applications. Just disable the test in this case if the decimal separator is something different than a point. Use a precheck with a small C program to achieve that. Closes https://github.com/curl/curl/pull/2786 --- tests/libtest/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/libtest/CMakeLists.txt') diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt index bf2bc5e7e..ac8d33328 100644 --- a/tests/libtest/CMakeLists.txt +++ b/tests/libtest/CMakeLists.txt @@ -56,6 +56,9 @@ add_custom_command( "${CMAKE_SOURCE_DIR}/include/curl/curl.h" VERBATIM) +set_property(TARGET chkdecimalpoint + APPEND PROPERTY COMPILE_DEFINITIONS "CURLX_NO_MEMORY_CALLBACKS;CURL_STATICLIB") + # # files used only in some libcurl test programs # SET(TESTUTIL testutil.c testutil.h) -- cgit v1.2.3