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
9f92437e
Commit
9f92437e
authored
Mar 04, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32/tests: Don't run tests if functions are not implemented.
parent
17ac48b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
3 deletions
+48
-3
imalloc.c
dlls/mapi32/tests/imalloc.c
+17
-1
prop.c
dlls/mapi32/tests/prop.c
+13
-1
util.c
dlls/mapi32/tests/util.c
+18
-1
No files found.
dlls/mapi32/tests/imalloc.c
View file @
9f92437e
...
...
@@ -87,12 +87,28 @@ static void test_IMalloc(void)
START_TEST
(
imalloc
)
{
SCODE
ret
;
hMapi32
=
LoadLibraryA
(
"mapi32.dll"
);
pScInitMapiUtil
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"ScInitMapiUtil@4"
);
if
(
!
pScInitMapiUtil
)
{
skip
(
"ScInitMapiUtil is not available
\n
"
);
FreeLibrary
(
hMapi32
);
return
;
}
SetLastError
(
0xdeadbeef
);
ret
=
pScInitMapiUtil
(
0
);
if
((
ret
!=
S_OK
)
&&
(
GetLastError
()
==
ERROR_PROC_NOT_FOUND
))
{
skip
(
"ScInitMapiUtil is not implemented
\n
"
);
FreeLibrary
(
hMapi32
);
return
;
pScInitMapiUtil
(
0
);
}
test_IMalloc
();
FreeLibrary
(
hMapi32
);
}
dlls/mapi32/tests/prop.c
View file @
9f92437e
...
...
@@ -1342,10 +1342,22 @@ static void test_IProp(void)
START_TEST
(
prop
)
{
SCODE
ret
;
if
(
!
InitFuncPtrs
())
{
skip
(
"Needed functions are not available
\n
"
);
return
;
}
pScInitMapiUtil
(
0
);
SetLastError
(
0xdeadbeef
);
ret
=
pScInitMapiUtil
(
0
);
if
((
ret
!=
S_OK
)
&&
(
GetLastError
()
==
ERROR_PROC_NOT_FOUND
))
{
skip
(
"ScInitMapiUtil is not implemented
\n
"
);
FreeLibrary
(
hMapi32
);
return
;
}
test_PropCopyMore
();
test_UlPropSize
();
...
...
dlls/mapi32/tests/util.c
View file @
9f92437e
...
...
@@ -169,12 +169,27 @@ static void test_IsBadBoundedStringPtr(void)
START_TEST
(
util
)
{
SCODE
ret
;
hMapi32
=
LoadLibraryA
(
"mapi32.dll"
);
pScInitMapiUtil
=
(
void
*
)
GetProcAddress
(
hMapi32
,
"ScInitMapiUtil@4"
);
if
(
!
pScInitMapiUtil
)
{
skip
(
"ScInitMapiUtil is not available
\n
"
);
FreeLibrary
(
hMapi32
);
return
;
pScInitMapiUtil
(
0
);
}
SetLastError
(
0xdeadbeef
);
ret
=
pScInitMapiUtil
(
0
);
if
((
ret
!=
S_OK
)
&&
(
GetLastError
()
==
ERROR_PROC_NOT_FOUND
))
{
skip
(
"ScInitMapiUtil is not implemented
\n
"
);
FreeLibrary
(
hMapi32
);
return
;
}
test_SwapPword
();
test_SwapPlong
();
...
...
@@ -183,4 +198,6 @@ START_TEST(util)
test_UlFromSzHex
();
test_CbOfEncoded
();
test_IsBadBoundedStringPtr
();
FreeLibrary
(
hMapi32
);
}
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