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
34b5e424
Commit
34b5e424
authored
Mar 05, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Add skip statements for missing functions to the string tests.
parent
c978bbee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
25 deletions
+47
-25
string.c
dlls/shlwapi/tests/string.c
+47
-25
No files found.
dlls/shlwapi/tests/string.c
View file @
34b5e424
...
...
@@ -562,19 +562,22 @@ static void test_StrCmpA(void)
ok
(
ChrCmpIA
(
'a'
,
'z'
),
"ChrCmpIA believes that a == z!
\n
"
);
pStrIsIntlEqualA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"StrIsIntlEqualA"
);
pIntlStrEqWorkerA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerA"
);
if
(
!
pStrIsIntlEqualA
)
return
;
ok
(
pStrIsIntlEqualA
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pStrIsIntlEqualA
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(TRUE,...) isn't case-sensitive
\n
"
);
if
(
!
pIntlStrEqWorkerA
)
return
;
if
(
pStrIsIntlEqualA
)
{
ok
(
pStrIsIntlEqualA
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pStrIsIntlEqualA
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(TRUE,...) isn't case-sensitive
\n
"
);
}
else
skip
(
"StrIsIntlEqualA() is not available. Tests skipped
\n
"
);
ok
(
pIntlStrEqWorkerA
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pIntlStrEqWorkerA
(
TRUE
,
str1
,
str2
,
5
),
"pIntlStrEqWorkerA(TRUE,...) isn't case-sensitive
\n
"
);
pIntlStrEqWorkerA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerA"
);
if
(
pIntlStrEqWorkerA
)
{
ok
(
pIntlStrEqWorkerA
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pIntlStrEqWorkerA
(
TRUE
,
str1
,
str2
,
5
),
"pIntlStrEqWorkerA(TRUE,...) isn't case-sensitive
\n
"
);
}
else
skip
(
"IntlStrEqWorkerA() is not available. Tests skipped
\n
"
);
}
static
void
test_StrCmpW
(
void
)
...
...
@@ -588,19 +591,22 @@ static void test_StrCmpW(void)
ok
(
ChrCmpIW
(
'a'
,
'z'
),
"ChrCmpIW believes that a == z!
\n
"
);
pStrIsIntlEqualW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"StrIsIntlEqualW"
);
pIntlStrEqWorkerW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerW"
);
if
(
!
pStrIsIntlEqualW
)
return
;
ok
(
pStrIsIntlEqualW
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pStrIsIntlEqualW
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(TRUE,...) isn't case-sensitive
\n
"
);
if
(
!
pIntlStrEqWorkerW
)
return
;
if
(
pStrIsIntlEqualW
)
{
ok
(
pStrIsIntlEqualW
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pStrIsIntlEqualW
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualW(TRUE,...) isn't case-sensitive
\n
"
);
}
else
skip
(
"StrIsIntlEqualW() is not available. Tests skipped
\n
"
);
ok
(
pIntlStrEqWorkerW
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pIntlStrEqWorkerW
(
TRUE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(TRUE,...) isn't case-sensitive
\n
"
);
pIntlStrEqWorkerW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"IntlStrEqWorkerW"
);
if
(
pIntlStrEqWorkerW
)
{
ok
(
pIntlStrEqWorkerW
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
pIntlStrEqWorkerW
(
TRUE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerW(TRUE,...) isn't case-sensitive
\n
"
);
}
else
skip
(
"IntlStrEqWorkerW() is not available. Tests skipped
\n
"
);
}
static
WCHAR
*
CoDupStrW
(
const
char
*
src
)
...
...
@@ -620,7 +626,11 @@ static void test_StrRetToBSTR(void)
HRESULT
ret
;
pStrRetToBSTR
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"StrRetToBSTR"
);
if
(
!
pStrRetToBSTR
)
return
;
if
(
!
pStrRetToBSTR
)
{
skip
(
"StrRetToBSTR() is not available. Tests skipped
\n
"
);
return
;
}
strret
.
uType
=
STRRET_WSTR
;
U
(
strret
).
pOleStr
=
CoDupStrW
(
"Test"
);
...
...
@@ -659,7 +669,10 @@ static void test_StrCpyNXA(void)
pStrCpyNXA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
399
);
if
(
!
pStrCpyNXA
)
{
skip
(
"StrCpyNXA() is not available. Tests skipped
\n
"
);
return
;
}
memset
(
dest
,
'\n'
,
sizeof
(
dest
));
lpszRes
=
pStrCpyNXA
(
dest
,
lpSrc
,
sizeof
(
dest
)
/
sizeof
(
dest
[
0
]));
...
...
@@ -678,7 +691,10 @@ static void test_StrCpyNXW(void)
pStrCpyNXW
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
400
);
if
(
!
pStrCpyNXW
)
{
skip
(
"StrCpyNXW() is not available. Tests skipped
\n
"
);
return
;
}
memcpy
(
dest
,
lpInit
,
sizeof
(
lpInit
));
lpszRes
=
pStrCpyNXW
(
dest
,
lpSrc
,
sizeof
(
dest
)
/
sizeof
(
dest
[
0
]));
...
...
@@ -733,7 +749,10 @@ static void test_SHAnsiToAnsi(void)
pSHAnsiToAnsi
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
345
);
if
(
!
pSHAnsiToAnsi
)
{
skip
(
"SHAnsiToAnsi() is not available. Tests skipped
\n
"
);
return
;
}
memset
(
dest
,
'\n'
,
sizeof
(
dest
));
dwRet
=
pSHAnsiToAnsi
(
"hello"
,
dest
,
sizeof
(
dest
)
/
sizeof
(
dest
[
0
]));
...
...
@@ -752,7 +771,10 @@ static void test_SHUnicodeToUnicode(void)
pSHUnicodeToUnicode
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
(
LPSTR
)
346
);
if
(
!
pSHUnicodeToUnicode
)
{
skip
(
"SHUnicodeToUnicode() is not available. Tests skipped
\n
"
);
return
;
}
memcpy
(
dest
,
lpInit
,
sizeof
(
lpInit
));
dwRet
=
pSHUnicodeToUnicode
(
lpSrc
,
dest
,
sizeof
(
dest
)
/
sizeof
(
dest
[
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