diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-08-07 19:42:23 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-08-07 19:42:23 +0200 |
commit | fe410fa23971f1684c713ed2b6c5b17019161d7d (patch) | |
tree | b8db46130276846e66f2d26c34491dcc65fb8051 /test/unit | |
parent | 3c2d228ddc74b75122b07a87bbd06263092a9661 (diff) | |
download | fork-ledger-fe410fa23971f1684c713ed2b6c5b17019161d7d.tar.gz fork-ledger-fe410fa23971f1684c713ed2b6c5b17019161d7d.tar.bz2 fork-ledger-fe410fa23971f1684c713ed2b6c5b17019161d7d.zip |
[tests] Set timezone for running tests
so that the tests run with a consistent environment.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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) |