shlwapi/tests: Run more language dependent tests only on English locales.
authorDetlef Riekenberg <wine.dev@web.de>
Fri, 13 Aug 2010 20:51:44 +0000 (22:51 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 16 Aug 2010 13:54:23 +0000 (15:54 +0200)
dlls/shlwapi/tests/string.c

index aa97088a01c669b7d79a0e527375aacde4b9fc17..00a446972daeeb0b0347050b2e06657f2743dc63 100644 (file)
@@ -1421,19 +1421,17 @@ START_TEST(string)
   test_StrToIntExA();
   test_StrToIntExW();
   test_StrDupA();
-  if (lstrcmp(thousandDelim, ",")==0 && lstrcmp(decimalDelim, ".")==0)
-  {
-    /* these tests are locale-dependent */
-    test_StrFormatByteSize64A();
-    test_StrFormatKBSizeA();
-    test_StrFormatKBSizeW();
-  }
 
   /* language-dependent test */
   if (PRIMARYLANGID(GetUserDefaultLangID()) != LANG_ENGLISH)
-    trace("Skipping StrFromTimeInterval test for non English language\n");
+    skip("English is required for StrFromTimeInterval and StrFormat*Size tests\n");
   else
+  {
+    test_StrFormatByteSize64A();
+    test_StrFormatKBSizeA();
+    test_StrFormatKBSizeW();
     test_StrFromTimeIntervalA();
+  }
 
   test_StrCmpA();
   test_StrCmpW();