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
29edebe0
Commit
29edebe0
authored
Jan 30, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: ChrCmpI* is not present on Win95B (winetestbot).
parent
246f9305
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
string.c
dlls/shlwapi/tests/string.c
+18
-6
No files found.
dlls/shlwapi/tests/string.c
View file @
29edebe0
...
...
@@ -40,6 +40,8 @@
ok(ret == val1 || ret == val2, "Unexpected value of '" #expr "': " #fmt " instead of " #val1 " or " #val2 "\n", ret); \
} while (0);
static
BOOL
(
WINAPI
*
pChrCmpIA
)(
CHAR
,
CHAR
);
static
BOOL
(
WINAPI
*
pChrCmpIW
)(
WCHAR
,
WCHAR
);
static
BOOL
(
WINAPI
*
pIntlStrEqWorkerA
)(
BOOL
,
LPCSTR
,
LPCSTR
,
int
);
static
BOOL
(
WINAPI
*
pIntlStrEqWorkerW
)(
BOOL
,
LPCWSTR
,
LPCWSTR
,
int
);
static
DWORD
(
WINAPI
*
pSHAnsiToAnsi
)(
LPCSTR
,
LPSTR
,
int
);
...
...
@@ -608,9 +610,13 @@ static void test_StrCmpA(void)
static
const
char
str2
[]
=
{
'a'
,
'B'
,
'c'
,
'd'
,
'e'
,
'f'
};
ok
(
0
!=
StrCmpNA
(
str1
,
str2
,
6
),
"StrCmpNA is case-insensitive
\n
"
);
ok
(
0
==
StrCmpNIA
(
str1
,
str2
,
6
),
"StrCmpNIA is case-sensitive
\n
"
);
ok
(
!
ChrCmpIA
(
'a'
,
'a'
),
"ChrCmpIA doesn't work at all!
\n
"
);
ok
(
!
ChrCmpIA
(
'b'
,
'B'
),
"ChrCmpIA is not case-insensitive
\n
"
);
ok
(
ChrCmpIA
(
'a'
,
'z'
),
"ChrCmpIA believes that a == z!
\n
"
);
if
(
pChrCmpIA
)
{
ok
(
!
pChrCmpIA
(
'a'
,
'a'
),
"ChrCmpIA doesn't work at all!
\n
"
);
ok
(
!
pChrCmpIA
(
'b'
,
'B'
),
"ChrCmpIA is not case-insensitive
\n
"
);
ok
(
pChrCmpIA
(
'a'
,
'z'
),
"ChrCmpIA believes that a == z!
\n
"
);
}
else
win_skip
(
"ChrCmpIA() is not available
\n
"
);
if
(
pStrIsIntlEqualA
)
{
...
...
@@ -635,9 +641,13 @@ static void test_StrCmpW(void)
static
const
WCHAR
str2
[]
=
{
'a'
,
'B'
,
'c'
,
'd'
,
'e'
,
'f'
};
ok
(
0
!=
StrCmpNW
(
str1
,
str2
,
5
),
"StrCmpNW is case-insensitive
\n
"
);
ok
(
0
==
StrCmpNIW
(
str1
,
str2
,
5
),
"StrCmpNIW is case-sensitive
\n
"
);
ok
(
!
ChrCmpIW
(
'a'
,
'a'
),
"ChrCmpIW doesn't work at all!
\n
"
);
ok
(
!
ChrCmpIW
(
'b'
,
'B'
),
"ChrCmpIW is not case-insensitive
\n
"
);
ok
(
ChrCmpIW
(
'a'
,
'z'
),
"ChrCmpIW believes that a == z!
\n
"
);
if
(
pChrCmpIW
)
{
ok
(
!
pChrCmpIW
(
'a'
,
'a'
),
"ChrCmpIW doesn't work at all!
\n
"
);
ok
(
!
pChrCmpIW
(
'b'
,
'B'
),
"ChrCmpIW is not case-insensitive
\n
"
);
ok
(
pChrCmpIW
(
'a'
,
'z'
),
"ChrCmpIW believes that a == z!
\n
"
);
}
else
win_skip
(
"ChrCmpIW() is not available
\n
"
);
if
(
pStrIsIntlEqualW
)
{
...
...
@@ -925,6 +935,8 @@ START_TEST(string)
GetLocaleInfo
(
LOCALE_USER_DEFAULT
,
LOCALE_SDECIMAL
,
decimalDelim
,
8
);
hShlwapi
=
GetModuleHandleA
(
"shlwapi"
);
pChrCmpIA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"ChrCmpIA"
);
pChrCmpIW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"ChrCmpIW"
);
pIntlStrEqWorkerA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerA"
);
pIntlStrEqWorkerW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerW"
);
pSHAnsiToAnsi
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
345
);
...
...
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