From 3998e6fc7fb9cdd27e056253fa2af6de221da926 Mon Sep 17 00:00:00 2001 From: Seigo Nonaka Date: Thu, 22 Feb 2018 14:14:33 -0800 Subject: Fix test failure due to data directory detection logic change The font data path resolving logic was changed in I01c8b885ce196f2f628d347c187691805a4d9c71. But the failing test was introduced just before this change. Need to update the test code for resolving the font path. Bug: 73786894 Test: minikin_tests Change-Id: I4010a221fb2a22062095c4c3ffeb646a0d0f5d51 --- tests/util/FontTestUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/FontTestUtils.cpp b/tests/util/FontTestUtils.cpp index f26ef3e..8aaac3d 100644 --- a/tests/util/FontTestUtils.cpp +++ b/tests/util/FontTestUtils.cpp @@ -129,7 +129,7 @@ std::shared_ptr buildFontFamily(const std::string& filePath) { } std::shared_ptr buildFontFamily(const std::string& filePath, const std::string& lang) { - auto font = std::make_shared(filePath); + auto font = std::make_shared(getTestFontPath(filePath)); std::vector fonts; fonts.push_back(Font::Builder(font).build()); return std::make_shared(LocaleListCache::getId(lang), FontFamily::Variant::DEFAULT, -- cgit v1.2.3