From d8c1edd40d36f656b22d46068cfacaff031b5d86 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 16 Mar 2017 05:04:05 +0300 Subject: Disable unit test for timeDiffToString if NLS not enabled. --- src/utils/stringutils_unittest.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/utils') 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") { -- cgit v1.2.3-70-g09d2