From a4b6c771b9bab8fb72aa5b0fffc927dbf47e5436 Mon Sep 17 00:00:00 2001 From: vng Date: Fri, 14 Mar 2014 16:02:44 +0300 Subject: [PATCH] Fixed file path for Unicode test. --- base/base_tests/string_utils_test.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/base/base_tests/string_utils_test.cpp b/base/base_tests/string_utils_test.cpp index cb82e3fa25..f7ed588abf 100644 --- a/base/base_tests/string_utils_test.cpp +++ b/base/base_tests/string_utils_test.cpp @@ -1,6 +1,6 @@ #include "../../testing/testing.hpp" -#include "../string_utils.hpp" +#include "../string_utils.hpp" #include "../logging.hpp" #include "../../std/iomanip.hpp" @@ -8,18 +8,22 @@ #include "../../std/bind.hpp" #include "../../std/unordered_map.hpp" -#define UNICODE_TEST_FILE "../../data/CaseFolding.test" /// internal function in base namespace strings { UniChar LowerUniChar(UniChar c); } UNIT_TEST(LowerUniChar) { - // load unicode case folding table - ifstream file(UNICODE_TEST_FILE); + // Load unicode case folding table. + + // To use Platform class here, we need to add many link stuff into .pro file ... + //string const fName = GetPlatform().WritablePathForFile("CaseFolding.test"); + string const fName = "../../../omim/data/CaseFolding.test"; + + ifstream file(fName.c_str()); if (!file.good()) { - LOG(LWARNING, ("Can't open unicode test file", UNICODE_TEST_FILE)); + LOG(LWARNING, ("Can't open unicode test file", fName)); return; }