Huw Davies : oleaut32/tests: Skip the named time tests for locales that use the 24 hour clock.

Alexandre Julliard julliard at winehq.org
Wed May 4 13:47:41 CDT 2011


Module: wine
Branch: master
Commit: da27bb59379834f501d89aeca9540e1e2f9a4edd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=da27bb59379834f501d89aeca9540e1e2f9a4edd

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed May  4 11:26:50 2011 +0100

oleaut32/tests: Skip the named time tests for locales that use the 24 hour clock.

---

 dlls/oleaut32/tests/varformat.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c
index b1fe73f..ae74429 100644
--- a/dlls/oleaut32/tests/varformat.c
+++ b/dlls/oleaut32/tests/varformat.c
@@ -310,10 +310,10 @@ static void test_VarFormat(void)
   }
 
   /* Named time formats */
-  GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_STIME, buff, sizeof(buff)/sizeof(char));
-  if (buff[0] != ':' || buff[1])
+  GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_STIMEFORMAT, buff, sizeof(buff)/sizeof(char));
+  if (strcmp(buff, "h:mm:ss tt"))
   {
-    skip("Skipping namedtime tests as time separator is '%s'\n", buff);
+    skip("Skipping named time tests as time format is '%s'\n", buff);
   }
   else
   {




More information about the wine-cvs mailing list