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
8f1a3604
Commit
8f1a3604
authored
Feb 11, 2013
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Skip tests on non-English systems.
parent
245dbaac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
locale.c
dlls/kernel32/tests/locale.c
+21
-3
No files found.
dlls/kernel32/tests/locale.c
View file @
8f1a3604
...
...
@@ -280,11 +280,23 @@ static void test_GetLocaleInfoW(void)
ret
=
GetLocaleInfoW
(
lcid_en_neut
,
LOCALE_SCOUNTRY
,
bufferW
,
COUNTOF
(
bufferW
));
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
!
lstrcmpW
(
statesW
,
bufferW
),
"got wrong name %s
\n
"
,
wine_dbgstr_w
(
bufferW
));
if
((
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetSystemDefaultLCID
()))
!=
LANG_ENGLISH
)
||
(
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetThreadLocale
()))
!=
LANG_ENGLISH
))
{
skip
(
"Non-English locale
\n
"
);
}
else
ok
(
!
lstrcmpW
(
statesW
,
bufferW
),
"got wrong name %s
\n
"
,
wine_dbgstr_w
(
bufferW
));
ret
=
GetLocaleInfoW
(
lcid_en_neut
,
LOCALE_SLANGUAGE
,
bufferW
,
COUNTOF
(
bufferW
));
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
!
lstrcmpW
(
slangW
,
bufferW
),
"got wrong name %s
\n
"
,
wine_dbgstr_w
(
bufferW
));
if
((
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetSystemDefaultLCID
()))
!=
LANG_ENGLISH
)
||
(
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetThreadLocale
()))
!=
LANG_ENGLISH
))
{
skip
(
"Non-English locale
\n
"
);
}
else
ok
(
!
lstrcmpW
(
slangW
,
bufferW
),
"got wrong name %s
\n
"
,
wine_dbgstr_w
(
bufferW
));
while
(
*
ptr
->
name
)
{
...
...
@@ -3434,7 +3446,13 @@ static void test_GetLocaleInfoEx(void)
ret
=
pGetLocaleInfoEx
(
enW
,
LOCALE_SCOUNTRY
,
bufferW
,
sizeof
(
bufferW
)
/
sizeof
(
WCHAR
));
ok
(
ret
==
lstrlenW
(
bufferW
)
+
1
,
"got %d
\n
"
,
ret
);
ok
(
!
lstrcmpW
(
bufferW
,
statesW
),
"got %s
\n
"
,
wine_dbgstr_w
(
bufferW
));
if
((
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetSystemDefaultLCID
()))
!=
LANG_ENGLISH
)
||
(
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetThreadLocale
()))
!=
LANG_ENGLISH
))
{
skip
(
"Non-English locale
\n
"
);
}
else
ok
(
!
lstrcmpW
(
bufferW
,
statesW
),
"got %s
\n
"
,
wine_dbgstr_w
(
bufferW
));
bufferW
[
0
]
=
0
;
SetLastError
(
0xdeadbeef
);
...
...
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