From fdf80ad7d9b096bcc5936b901d2c9b03609f36dd Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 17 Jan 2017 10:51:46 +0000 Subject: [PATCH] kernel32/tests: Skip testing the translated invariant names on non US-English locales. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/kernel32/tests/locale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c index c5b65f7b8ad..4224c0a271b 100644 --- a/dlls/kernel32/tests/locale.c +++ b/dlls/kernel32/tests/locale.c @@ -4875,10 +4875,10 @@ static void test_invariant(void) ptr++; } - if ((PRIMARYLANGID(LANGIDFROMLCID(GetSystemDefaultLCID())) != LANG_ENGLISH) || - (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) != LANG_ENGLISH)) + if ((LANGIDFROMLCID(GetSystemDefaultLCID()) != MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US)) || + (LANGIDFROMLCID(GetThreadLocale()) != MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US))) { - skip("Non-English locale\n"); + skip("Non US-English locale\n"); } else {