shlwapi[2/4]: tests: enable the locale-dependent tests if the
delimiters are correct
Mikołaj Zalewski
mikolaj at zalewski.pl
Sun Oct 22 12:40:56 CDT 2006
Currently they were not run at all.
-------------- next part --------------
diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c
index b6dc9d3..802811d 100644
--- a/dlls/shlwapi/tests/string.c
+++ b/dlls/shlwapi/tests/string.c
@@ -720,8 +720,13 @@ static void test_SHUnicodeToUnicode(void
START_TEST(string)
{
+ TCHAR thousandDelim[8];
+ TCHAR decimalDelim[8];
CoInitialize(0);
+ GetLocaleInfo(GetUserDefaultLCID(), LOCALE_STHOUSAND, thousandDelim, 8);
+ GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SDECIMAL, decimalDelim, 8);
+
hShlwapi = GetModuleHandleA("shlwapi");
if (!hShlwapi)
return;
@@ -738,15 +743,11 @@ START_TEST(string)
test_StrToIntExA();
test_StrToIntExW();
test_StrDupA();
- if (0)
+ if (lstrcmp(thousandDelim, ",")==0 && lstrcmp(decimalDelim, ".")==0)
{
- /* this test fails on locales which do not use '.' as a decimal separator */
+ /* these tests are locale-dependent */
test_StrFormatByteSize64A();
-
- /* this test fails on locales which do not use '.' as a decimal separator */
test_StrFormatKBSizeA();
-
- /* FIXME: Awaiting NLS fixes in kernel before these succeed */
test_StrFormatKBSizeW();
}
test_StrFromTimeIntervalA();
--
1.4.2.3
More information about the wine-patches
mailing list