Commit 4e911804 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 37ea62f6
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment