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
4904e311
Commit
4904e311
authored
Jan 18, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jan 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32/tests: Report skips for unavailable utility functions.
parent
3bd474d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
util.c
dlls/mapi32/tests/util.c
+21
-0
No files found.
dlls/mapi32/tests/util.c
View file @
4904e311
...
@@ -46,7 +46,10 @@ static void test_SwapPword(void)
...
@@ -46,7 +46,10 @@ static void test_SwapPword(void)
pSwapPword
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"SwapPword@8"
);
pSwapPword
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"SwapPword@8"
);
if
(
!
pSwapPword
)
if
(
!
pSwapPword
)
{
win_skip
(
"SwapPword is not available
\n
"
);
return
;
return
;
}
shorts
[
0
]
=
0xff01
;
shorts
[
0
]
=
0xff01
;
shorts
[
1
]
=
0x10ff
;
shorts
[
1
]
=
0x10ff
;
...
@@ -63,7 +66,10 @@ static void test_SwapPlong(void)
...
@@ -63,7 +66,10 @@ static void test_SwapPlong(void)
pSwapPlong
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"SwapPlong@8"
);
pSwapPlong
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"SwapPlong@8"
);
if
(
!
pSwapPlong
)
if
(
!
pSwapPlong
)
{
win_skip
(
"SwapPlong is not available
\n
"
);
return
;
return
;
}
longs
[
0
]
=
0xffff0001
;
longs
[
0
]
=
0xffff0001
;
longs
[
1
]
=
0x1000ffff
;
longs
[
1
]
=
0x1000ffff
;
...
@@ -92,7 +98,10 @@ static void test_HexFromBin(void)
...
@@ -92,7 +98,10 @@ static void test_HexFromBin(void)
pHexFromBin
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"HexFromBin@12"
);
pHexFromBin
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"HexFromBin@12"
);
pFBinFromHex
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"FBinFromHex@8"
);
pFBinFromHex
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"FBinFromHex@8"
);
if
(
!
pHexFromBin
||
!
pFBinFromHex
)
if
(
!
pHexFromBin
||
!
pFBinFromHex
)
{
win_skip
(
"Hexadecimal conversion functions are not available
\n
"
);
return
;
return
;
}
for
(
i
=
0
;
i
<
255
;
i
++
)
for
(
i
=
0
;
i
<
255
;
i
++
)
data
[
i
]
=
i
;
data
[
i
]
=
i
;
...
@@ -114,7 +123,10 @@ static void test_UFromSz(void)
...
@@ -114,7 +123,10 @@ static void test_UFromSz(void)
{
{
pUFromSz
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"UFromSz@4"
);
pUFromSz
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"UFromSz@4"
);
if
(
!
pUFromSz
)
if
(
!
pUFromSz
)
{
win_skip
(
"UFromSz is not available
\n
"
);
return
;
return
;
}
ok
(
pUFromSz
(
"105679"
)
==
105679u
,
ok
(
pUFromSz
(
"105679"
)
==
105679u
,
"UFromSz: expected 105679, got %d
\n
"
,
pUFromSz
(
"105679"
));
"UFromSz: expected 105679, got %d
\n
"
,
pUFromSz
(
"105679"
));
...
@@ -127,7 +139,10 @@ static void test_UlFromSzHex(void)
...
@@ -127,7 +139,10 @@ static void test_UlFromSzHex(void)
{
{
pUlFromSzHex
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"UlFromSzHex@4"
);
pUlFromSzHex
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"UlFromSzHex@4"
);
if
(
!
pUlFromSzHex
)
if
(
!
pUlFromSzHex
)
{
win_skip
(
"UlFromSzHex is not available
\n
"
);
return
;
return
;
}
ok
(
pUlFromSzHex
(
"fF"
)
==
0xffu
,
ok
(
pUlFromSzHex
(
"fF"
)
==
0xffu
,
"UlFromSzHex: expected 0xff, got 0x%x
\n
"
,
pUlFromSzHex
(
"fF"
));
"UlFromSzHex: expected 0xff, got 0x%x
\n
"
,
pUlFromSzHex
(
"fF"
));
...
@@ -143,7 +158,10 @@ static void test_CbOfEncoded(void)
...
@@ -143,7 +158,10 @@ static void test_CbOfEncoded(void)
pCbOfEncoded
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"CbOfEncoded@4"
);
pCbOfEncoded
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"CbOfEncoded@4"
);
if
(
!
pCbOfEncoded
)
if
(
!
pCbOfEncoded
)
{
win_skip
(
"CbOfEncoded is not available
\n
"
);
return
;
return
;
}
for
(
i
=
0
;
i
<
sizeof
(
buff
)
-
1
;
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
buff
)
-
1
;
i
++
)
{
{
...
@@ -162,7 +180,10 @@ static void test_IsBadBoundedStringPtr(void)
...
@@ -162,7 +180,10 @@ static void test_IsBadBoundedStringPtr(void)
{
{
pIsBadBoundedStringPtr
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"IsBadBoundedStringPtr@8"
);
pIsBadBoundedStringPtr
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"IsBadBoundedStringPtr@8"
);
if
(
!
pIsBadBoundedStringPtr
)
if
(
!
pIsBadBoundedStringPtr
)
{
win_skip
(
"IsBadBoundedStringPtr is not available
\n
"
);
return
;
return
;
}
ok
(
pIsBadBoundedStringPtr
(
NULL
,
0
)
==
TRUE
,
"IsBadBoundedStringPtr: expected TRUE
\n
"
);
ok
(
pIsBadBoundedStringPtr
(
NULL
,
0
)
==
TRUE
,
"IsBadBoundedStringPtr: expected TRUE
\n
"
);
ok
(
pIsBadBoundedStringPtr
(
"TEST"
,
4
)
==
TRUE
,
"IsBadBoundedStringPtr: expected TRUE
\n
"
);
ok
(
pIsBadBoundedStringPtr
(
"TEST"
,
4
)
==
TRUE
,
"IsBadBoundedStringPtr: expected TRUE
\n
"
);
...
...
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