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
732a0795
Commit
732a0795
authored
Jun 24, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Skip some tests if functions are not available.
parent
bb4e7832
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
shellpath.c
dlls/shell32/tests/shellpath.c
+10
-0
No files found.
dlls/shell32/tests/shellpath.c
View file @
732a0795
...
...
@@ -478,11 +478,14 @@ static void testShellValues(const struct shellExpectedValues testEntries[],
{
BYTE
type
;
if
(
pSHGetFolderLocation
)
{
type
=
testSHGetFolderLocation
(
optional
,
testEntries
[
i
].
folder
);
ok
(
type
==
testEntries
[
i
].
pidlType
||
optional
,
"%s has type %d (0x%02x), expected %d (0x%02x)
\n
"
,
getFolderName
(
testEntries
[
i
].
folder
),
type
,
type
,
testEntries
[
i
].
pidlType
,
testEntries
[
i
].
pidlType
);
}
type
=
testSHGetSpecialFolderLocation
(
optional
,
testEntries
[
i
].
folder
);
ok
(
type
==
testEntries
[
i
].
pidlType
||
optional
,
"%s has type %d (0x%02x), expected %d (0x%02x)
\n
"
,
...
...
@@ -576,12 +579,15 @@ static void testPersonal(void)
/* The pidl may be a real folder, or a virtual directory, or a drive if the
* home directory is set to the root directory of a drive.
*/
if
(
pSHGetFolderLocation
)
{
type
=
testSHGetFolderLocation
(
FALSE
,
CSIDL_PERSONAL
);
ok
(
type
==
PT_FOLDER
||
type
==
PT_GUID
||
type
==
PT_DRIVE
,
"CSIDL_PERSONAL returned invalid type 0x%02x, "
"expected PT_FOLDER or PT_GUID
\n
"
,
type
);
if
(
type
==
PT_FOLDER
)
testSHGetFolderPath
(
FALSE
,
CSIDL_PERSONAL
);
}
type
=
testSHGetSpecialFolderLocation
(
FALSE
,
CSIDL_PERSONAL
);
ok
(
type
==
PT_FOLDER
||
type
==
PT_GUID
||
type
==
PT_DRIVE
,
"CSIDL_PERSONAL returned invalid type 0x%02x, "
...
...
@@ -898,6 +904,10 @@ START_TEST(shellpath)
doChild
(
myARGV
[
2
]);
else
{
/* Report missing functions once */
if
(
!
pSHGetFolderLocation
)
skip
(
"SHGetFolderLocation is not available
\n
"
);
/* first test various combinations of parameters: */
testApiParameters
();
...
...
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