summaryrefslogtreecommitdiffstats
path: root/tests/component/resources_test.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-11-15 07:01:17 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-11-15 07:01:17 +0100
commitf565ebb45f0f035da6a4559e9d04c9c294e03151 (patch)
tree1b6042c9906d2487a990850ec0465551af33e434 /tests/component/resources_test.cpp
parentMerge "Use the non-LTO/PGO hwbinder in recovery_component_test" (diff)
parentMerge "Adjust the background text image width to reduce its size" (diff)
downloadandroid_bootable_recovery-f565ebb45f0f035da6a4559e9d04c9c294e03151.tar
android_bootable_recovery-f565ebb45f0f035da6a4559e9d04c9c294e03151.tar.gz
android_bootable_recovery-f565ebb45f0f035da6a4559e9d04c9c294e03151.tar.bz2
android_bootable_recovery-f565ebb45f0f035da6a4559e9d04c9c294e03151.tar.lz
android_bootable_recovery-f565ebb45f0f035da6a4559e9d04c9c294e03151.tar.xz
android_bootable_recovery-f565ebb45f0f035da6a4559e9d04c9c294e03151.tar.zst
android_bootable_recovery-f565ebb45f0f035da6a4559e9d04c9c294e03151.zip
Diffstat (limited to 'tests/component/resources_test.cpp')
-rw-r--r--tests/component/resources_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/component/resources_test.cpp b/tests/component/resources_test.cpp
index 54329db22..d7fdb8fa0 100644
--- a/tests/component/resources_test.cpp
+++ b/tests/component/resources_test.cpp
@@ -101,7 +101,7 @@ TEST_P(ResourcesTest, ValidateLocale) {
EXPECT_LT(0, len) << "Locale string should be non-empty.";
EXPECT_NE(0, row[5]) << "Locale string is missing.";
- ASSERT_GT(png_->height(), y + 1 + h) << "Locale: " << kLocale << " is not found in the file.";
+ ASSERT_GE(png_->height(), y + 1 + h) << "Locale: " << kLocale << " is not found in the file.";
char* loc = reinterpret_cast<char*>(&row[5]);
if (matches_locale(loc, kLocale.c_str())) {
EXPECT_TRUE(android::base::StartsWith(loc, kLocale));