ntdll/tests: TZinfo sometimes does not get a MUI string.

RtlQuery*TimeZoneInformation() should return a MUI string but
there are rare cases where it does not in Windows 10 2004.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-07-05 18:09:37 +02:00 committed by Alexandre Julliard
parent 37ea62f674
commit 4e91180471
1 changed files with 12 additions and 6 deletions

View File

@ -234,10 +234,12 @@ static void test_RtlQueryTimeZoneInformation(void)
status = pRtlQueryDynamicTimeZoneInformation(&tzinfo);
ok(status == STATUS_SUCCESS,
"RtlQueryDynamicTimeZoneInformation failed, got %08x\n", status);
ok(tzinfo.StandardName[0] == '@',
ok(tzinfo.StandardName[0] == '@' ||
broken(tzinfo.StandardName[0]), /* some win10 2004 */
"standard time zone name isn't an indirect string, got %s\n",
wine_dbgstr_w(tzinfo.StandardName));
ok(tzinfo.DaylightName[0] == '@',
ok(tzinfo.DaylightName[0] == '@' ||
broken(tzinfo.DaylightName[0]), /* some win10 2004 */
"daylight time zone name isn't an indirect string, got %s\n",
wine_dbgstr_w(tzinfo.DaylightName));
@ -251,10 +253,12 @@ static void test_RtlQueryTimeZoneInformation(void)
status = pRtlQueryTimeZoneInformation((RTL_TIME_ZONE_INFORMATION *)&tzinfo);
ok(status == STATUS_SUCCESS,
"RtlQueryTimeZoneInformation failed, got %08x\n", status);
ok(tzinfo.StandardName[0] == '@',
ok(tzinfo.StandardName[0] == '@' ||
broken(tzinfo.StandardName[0]), /* some win10 2004 */
"standard time zone name isn't an indirect string, got %s\n",
wine_dbgstr_w(tzinfo.StandardName));
ok(tzinfo.DaylightName[0] == '@',
ok(tzinfo.DaylightName[0] == '@' ||
broken(tzinfo.DaylightName[0]), /* some win10 2004 */
"daylight time zone name isn't an indirect string, got %s\n",
wine_dbgstr_w(tzinfo.DaylightName));
@ -262,10 +266,12 @@ static void test_RtlQueryTimeZoneInformation(void)
status = pRtlQueryTimeZoneInformation((RTL_TIME_ZONE_INFORMATION *)&tzinfo);
ok(status == STATUS_SUCCESS,
"RtlQueryTimeZoneInformation failed, got %08x\n", status);
ok(tzinfo.StandardName[0] == '@',
ok(tzinfo.StandardName[0] == '@' ||
broken(tzinfo.StandardName[0]), /* some win10 2004 */
"standard time zone name isn't an indirect string, got %s\n",
wine_dbgstr_w(tzinfo.StandardName));
ok(tzinfo.DaylightName[0] == '@',
ok(tzinfo.DaylightName[0] == '@' ||
broken(tzinfo.DaylightName[0]), /* some win10 2004 */
"daylight time zone name isn't an indirect string, got %s\n",
wine_dbgstr_w(tzinfo.DaylightName));