on xenial help sign in
Fix LC_ALL and test harder by making both manual runs of timeformattertest and the whole test suite use the same locale settings.

Approved by: Nick Dedekind

commitcdb70f23aa32383a7386d18e700cae6b2ec74fb1 authorMichael Terry <michael.terry@canonical.com> dateTue 23 Sep 2014, 09:25 (12 years ago) parentd2206de9a955f3
1 file changed+2−2
tests/plugins/Utils/CMakeLists.txt+2−2
tests/plugins/Utils/CMakeLists.txt+2−2
@@ -7,11 +7,11 @@ include_directories(
77macro(run_tests)
88 set(_test_list "")
99 foreach(_test ${ARGN})
10− set(testCommand ${CMAKE_CURRENT_BINARY_DIR}/${_test}Exec
10+ set(testCommand env "LC_ALL=C" ${CMAKE_CURRENT_BINARY_DIR}/${_test}Exec
1111 -o ${CMAKE_BINARY_DIR}/${_test}.xml,xunitxml
1212 -o -,txt)
1313 add_test(NAME ${_test} COMMAND ${testCommand})
14− add_custom_target(${_test} env "LC_ALL=C" ${testCommand})
14+ add_custom_target(${_test} ${testCommand})
1515 add_executable(${_test}Exec ${_test}.cpp modeltest.cpp)
1616 qt5_use_modules(${_test}Exec Test Core Qml)
1717 target_link_libraries(${_test}Exec