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
6e8f8a05
Commit
6e8f8a05
authored
May 09, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Skip tests if codepage is not installed/available.
parent
ef304bbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
+27
-13
locale.c
dlls/kernel32/tests/locale.c
+27
-13
No files found.
dlls/kernel32/tests/locale.c
View file @
6e8f8a05
...
...
@@ -2135,7 +2135,7 @@ static void test_EnumUILanguageA(void)
{
BOOL
ret
;
if
(
!
pEnumUILanguagesA
)
{
trace
(
"EnumUILanguagesA is not available on Win9x
\n
"
);
skip
(
"EnumUILanguagesA is not available on Win9x or NT4
\n
"
);
return
;
}
...
...
@@ -2280,21 +2280,35 @@ static void test_GetCPInfo(void)
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
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
{
skip
(
"Codepage CP_UTF7 is not installed/available
\n
"
);
}
else
{
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
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
{
skip
(
"Codepage CP_UTF8 is not installed/available
\n
"
);
}
else
{
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 4, got 0x%x
\n
"
,
cpinfo
.
MaxCharSize
);
}
}
START_TEST
(
locale
)
...
...
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