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
8fb9503c
Commit
8fb9503c
authored
Jun 13, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Skip tests if function is not implemented.
parent
e7f5c45c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
file.c
dlls/kernel32/tests/file.c
+8
-0
No files found.
dlls/kernel32/tests/file.c
View file @
8fb9503c
...
...
@@ -1446,7 +1446,13 @@ static void test_FindFirstFileExA(void)
_lclose
(
_lcreat
(
"test-dir
\\
file2"
,
0
));
CreateDirectoryA
(
"test-dir
\\
dir1"
,
NULL
);
/* FindExLimitToDirectories is ignored */
SetLastError
(
0xdeadbeef
);
handle
=
pFindFirstFileExA
(
"test-dir
\\
*"
,
FindExInfoStandard
,
&
search_results
,
FindExSearchLimitToDirectories
,
NULL
,
0
);
if
(
handle
==
INVALID_HANDLE_VALUE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
skip
(
"FindFirstFileExA is not implemented
\n
"
);
goto
cleanup
;
}
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"FindFirstFile failed (err=%u)
\n
"
,
GetLastError
());
ok
(
strcmp
(
search_results
.
cFileName
,
"."
)
==
0
,
"First entry should be '.', is %s
\n
"
,
search_results
.
cFileName
);
...
...
@@ -1467,6 +1473,8 @@ static void test_FindFirstFileExA(void)
#undef CHECK_NAME
ok
(
FindNextFile
(
handle
,
&
search_results
)
==
FALSE
,
"Fetching sixth file should failed
\n
"
);
cleanup:
DeleteFileA
(
"test-dir
\\
file1"
);
DeleteFileA
(
"test-dir
\\
file2"
);
RemoveDirectoryA
(
"test-dir
\\
dir1"
);
...
...
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