Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bae3dc49
Commit
bae3dc49
authored
Apr 01, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add GetCPInfo test.
parent
4f5d3331
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
locale.c
dlls/kernel32/tests/locale.c
+31
-2
No files found.
dlls/kernel32/tests/locale.c
View file @
bae3dc49
...
@@ -2225,13 +2225,42 @@ static void test_EnumTimeFormatsA(void)
...
@@ -2225,13 +2225,42 @@ static void test_EnumTimeFormatsA(void)
ok
(
!
lstrcmpA
(
date_fmt_buf
,
buf
),
"expected
\"
%s
\"
got
\"
%s
\"\n
"
,
date_fmt_buf
,
buf
);
ok
(
!
lstrcmpA
(
date_fmt_buf
,
buf
),
"expected
\"
%s
\"
got
\"
%s
\"\n
"
,
date_fmt_buf
,
buf
);
}
}
static
void
test_GetCPInfo
(
void
)
{
BOOL
ret
;
CPINFO
cpinfo
;
SetLastError
(
0xdeadbeef
);
ret
=
GetCPInfo
(
CP_SYMBOL
,
&
cpinfo
);
ok
(
!
ret
,
"GetCPInfo(CP_SYMBOL) should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
GetCPInfo
(
CP_UTF7
,
&
cpinfo
);
ok
(
ret
,
"GetCPInfo(CP_UTF7) error %u
\n
"
,
GetLastError
());
ok
(
cpinfo
.
DefaultChar
[
0
]
==
0x3f
,
"expected 0x3f, got 0x%x
\n
"
,
cpinfo
.
DefaultChar
[
0
]);
ok
(
cpinfo
.
DefaultChar
[
1
]
==
0
,
"expected 0, got 0x%x
\n
"
,
cpinfo
.
DefaultChar
[
1
]);
ok
(
cpinfo
.
LeadByte
[
0
]
==
0
,
"expected 0, got 0x%x
\n
"
,
cpinfo
.
LeadByte
[
0
]);
ok
(
cpinfo
.
LeadByte
[
1
]
==
0
,
"expected 0, got 0x%x
\n
"
,
cpinfo
.
LeadByte
[
1
]);
ok
(
cpinfo
.
MaxCharSize
==
5
,
"expected 5, got 0x%x
\n
"
,
cpinfo
.
MaxCharSize
);
SetLastError
(
0xdeadbeef
);
ret
=
GetCPInfo
(
CP_UTF8
,
&
cpinfo
);
ok
(
ret
,
"GetCPInfo(CP_UTF8) error %u
\n
"
,
GetLastError
());
ok
(
cpinfo
.
DefaultChar
[
0
]
==
0x3f
,
"expected 0x3f, got 0x%x
\n
"
,
cpinfo
.
DefaultChar
[
0
]);
ok
(
cpinfo
.
DefaultChar
[
1
]
==
0
,
"expected 0, got 0x%x
\n
"
,
cpinfo
.
DefaultChar
[
1
]);
ok
(
cpinfo
.
LeadByte
[
0
]
==
0
,
"expected 0, got 0x%x
\n
"
,
cpinfo
.
LeadByte
[
0
]);
ok
(
cpinfo
.
LeadByte
[
1
]
==
0
,
"expected 0, got 0x%x
\n
"
,
cpinfo
.
LeadByte
[
1
]);
ok
(
cpinfo
.
MaxCharSize
==
4
,
"expected 5, got 0x%x
\n
"
,
cpinfo
.
MaxCharSize
);
}
START_TEST
(
locale
)
START_TEST
(
locale
)
{
{
InitFunctionPointers
();
InitFunctionPointers
();
test_EnumTimeFormatsA
();
test_EnumTimeFormatsA
();
test_EnumDateFormatsA
();
test_EnumDateFormatsA
();
test_GetLocaleInfoA
();
test_GetLocaleInfoA
();
test_GetTimeFormatA
();
test_GetTimeFormatA
();
test_GetDateFormatA
();
test_GetDateFormatA
();
...
@@ -2248,7 +2277,7 @@ START_TEST(locale)
...
@@ -2248,7 +2277,7 @@ START_TEST(locale)
test_EnumLanguageGroupLocalesA
();
test_EnumLanguageGroupLocalesA
();
test_SetLocaleInfoA
();
test_SetLocaleInfoA
();
test_EnumUILanguageA
();
test_EnumUILanguageA
();
test_GetCPInfo
();
/* this requires collation table patch to make it MS compatible */
/* this requires collation table patch to make it MS compatible */
if
(
0
)
test_sorting
();
if
(
0
)
test_sorting
();
}
}
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