From fe410fa23971f1684c713ed2b6c5b17019161d7d Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Fri, 7 Aug 2015 19:42:23 +0200 Subject: [tests] Set timezone for running tests so that the tests run with a consistent environment. --- test/unit/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/unit') diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index de7fdd26..4f688755 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -1,6 +1,8 @@ macro(add_ledger_test _name) target_link_libraries(${_name} libledger) add_test(Ledger${_name} ${PROJECT_BINARY_DIR}/${_name}) + set_tests_properties(Ledger${_name} + PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE}") endmacro(add_ledger_test _name) include_directories(${PROJECT_SOURCE_DIR}/src) -- cgit v1.2.3