on xenial help sign in
Fix timeformattertest test with different locales
commiteb68a6a6853e1a76f66d8b40a5d6646f5682ff21 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 16 Apr 2014, 10:16 (13 years ago) parent69b3541
1 file changed+2−1
tests/plugins/Utils/CMakeLists.txt+2−1
tests/plugins/Utils/CMakeLists.txt+2−1
@@ -11,7 +11,8 @@ macro(run_tests)
1111 -o ${CMAKE_BINARY_DIR}/${_test}.xml,xunitxml
1212 -o -,txt)
1313 add_test(NAME ${_test} COMMAND ${testCommand})
14− add_custom_target(${_test} ${testCommand})
14+ set_tests_properties(${_test} PROPERTIES ENVIRONMENT "LC_ALL=C")
15+ add_custom_target(${_test} env "LC_ALL=C" ${testCommand})
1516 add_executable(${_test}Exec ${_test}.cpp modeltest.cpp)
1617 qt5_use_modules(${_test}Exec Test Core Qml)
1718 target_link_libraries(${_test}Exec