Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
32af90d5
Commit
32af90d5
authored
Oct 06, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some failures on win9x.
parent
cc57b863
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
14 deletions
+30
-14
locale.c
dlls/kernel32/tests/locale.c
+30
-14
No files found.
dlls/kernel32/tests/locale.c
View file @
32af90d5
...
...
@@ -2196,25 +2196,41 @@ static void test_EnumDateFormatsA(void)
trace
(
"EnumDateFormatsA 0
\n
"
);
date_fmt_buf
[
0
]
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
EnumDateFormatsA
(
enum_datetime_procA
,
lcid
,
0
);
ok
(
ret
,
"EnumDateFormatsA(0) error %d
\n
"
,
GetLastError
());
trace
(
"%s
\n
"
,
date_fmt_buf
);
/* test the 1st enumerated format */
if
((
p
=
strchr
(
date_fmt_buf
,
'\n'
)))
*
p
=
0
;
ret
=
GetLocaleInfoA
(
lcid
,
LOCALE_SSHORTDATE
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"GetLocaleInfoA(LOCALE_SSHORTDATE) error %d
\n
"
,
GetLastError
());
ok
(
!
lstrcmpA
(
date_fmt_buf
,
buf
),
"expected
\"
%s
\"
got
\"
%s
\"\n
"
,
date_fmt_buf
,
buf
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_FLAGS
))
{
win_skip
(
"0 for dwFlags is not supported
\n
"
);
}
else
{
ok
(
ret
,
"EnumDateFormatsA(0) error %d
\n
"
,
GetLastError
());
trace
(
"%s
\n
"
,
date_fmt_buf
);
/* test the 1st enumerated format */
if
((
p
=
strchr
(
date_fmt_buf
,
'\n'
)))
*
p
=
0
;
ret
=
GetLocaleInfoA
(
lcid
,
LOCALE_SSHORTDATE
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"GetLocaleInfoA(LOCALE_SSHORTDATE) error %d
\n
"
,
GetLastError
());
ok
(
!
lstrcmpA
(
date_fmt_buf
,
buf
),
"expected
\"
%s
\"
got
\"
%s
\"\n
"
,
date_fmt_buf
,
buf
);
}
trace
(
"EnumDateFormatsA LOCALE_USE_CP_ACP
\n
"
);
date_fmt_buf
[
0
]
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
EnumDateFormatsA
(
enum_datetime_procA
,
lcid
,
LOCALE_USE_CP_ACP
);
ok
(
ret
,
"EnumDateFormatsA(LOCALE_USE_CP_ACP) error %d
\n
"
,
GetLastError
());
trace
(
"%s
\n
"
,
date_fmt_buf
);
/* test the 1st enumerated format */
if
((
p
=
strchr
(
date_fmt_buf
,
'\n'
)))
*
p
=
0
;
ret
=
GetLocaleInfoA
(
lcid
,
LOCALE_SSHORTDATE
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"GetLocaleInfoA(LOCALE_SSHORTDATE) error %d
\n
"
,
GetLastError
());
ok
(
!
lstrcmpA
(
date_fmt_buf
,
buf
),
"expected
\"
%s
\"
got
\"
%s
\"\n
"
,
date_fmt_buf
,
buf
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_FLAGS
))
{
win_skip
(
"LOCALE_USE_CP_ACP is not supported
\n
"
);
}
else
{
ok
(
ret
,
"EnumDateFormatsA(LOCALE_USE_CP_ACP) error %d
\n
"
,
GetLastError
());
trace
(
"%s
\n
"
,
date_fmt_buf
);
/* test the 1st enumerated format */
if
((
p
=
strchr
(
date_fmt_buf
,
'\n'
)))
*
p
=
0
;
ret
=
GetLocaleInfoA
(
lcid
,
LOCALE_SSHORTDATE
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"GetLocaleInfoA(LOCALE_SSHORTDATE) error %d
\n
"
,
GetLastError
());
ok
(
!
lstrcmpA
(
date_fmt_buf
,
buf
),
"expected
\"
%s
\"
got
\"
%s
\"\n
"
,
date_fmt_buf
,
buf
);
}
trace
(
"EnumDateFormatsA DATE_SHORTDATE
\n
"
);
date_fmt_buf
[
0
]
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment