Commit 36433590 by Jonah Ryan-Davis Committed by Commit Bot

Fix ShCompileTest.DecimalSepLocale failing on Linux/AMD

Bug: angleproject:3132 Change-Id: I4bbaaab732cd64e6f2f44d6a09a236533a1abc20 Reviewed-on: https://chromium-review.googlesource.com/c/1456616Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
parent 740db7fd
......@@ -142,8 +142,6 @@ TEST_F(ShCompileTest, DecimalSepLocale)
})";
const char *parts[] = {kSource};
int testedLocales = 0;
for (const std::string &locale : availableLocales)
{
// If the locale doesn't exist on the testing platform, the locale constructor will fail,
......@@ -172,15 +170,6 @@ TEST_F(ShCompileTest, DecimalSepLocale)
ASSERT_EQ(referenceOut, localizedOut)
<< "different output with locale (" << localizedLoc.name() << ") set";
testedLocales++;
}
}
// Ignore for Android which doesn't use these locales
#if !defined(ANGLE_PLATFORM_ANDROID)
// This test must run on at least one different locale to pass
EXPECT_NE(testedLocales, 0)
<< "Missing locales to test on this platform. Add them to availableLocales[]";
#endif
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment