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

This commit is contained in:
Huw Davies 2011-05-04 11:26:50 +01:00 committed by Alexandre Julliard
parent 6e123f3cbf
commit da27bb5937
1 changed files with 3 additions and 3 deletions

View File

@ -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
{