diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-16 05:04:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-16 05:04:05 +0300 |
commit | d8c1edd40d36f656b22d46068cfacaff031b5d86 (patch) | |
tree | b787a7c3e989e51cdef307262924e355bc847de3 /src/utils | |
parent | ece09fcf8eca867459c9eacd16530314fd2a6b8f (diff) | |
download | mv-d8c1edd40d36f656b22d46068cfacaff031b5d86.tar.gz mv-d8c1edd40d36f656b22d46068cfacaff031b5d86.tar.bz2 mv-d8c1edd40d36f656b22d46068cfacaff031b5d86.tar.xz mv-d8c1edd40d36f656b22d46068cfacaff031b5d86.zip |
Disable unit test for timeDiffToString if NLS not enabled.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils_unittest.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc index 2230e3646..d46e68bb7 100644 --- a/src/utils/stringutils_unittest.cc +++ b/src/utils/stringutils_unittest.cc @@ -1438,8 +1438,7 @@ TEST_CASE("stringuntils secureChatCommand") REQUIRE(str == "_#test"); } -#ifndef WIN32 -// disabled on windows for now, because no gettext +#ifdef ENABLE_NLS TEST_CASE("stringuntils timeDiffToString") { REQUIRE(timeDiffToString(60 * 60 * 24 * 7) == "1 week"); @@ -1470,7 +1469,7 @@ TEST_CASE("stringuntils timeDiffToString") REQUIRE(timeDiffToString(60 * 7 ) == "7 minutes"); } -#endif // WIN32 +#endif // ENABLE_NLS TEST_CASE("stringuntils replaceItemLinks") { |