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
c9b43443
Commit
c9b43443
authored
Oct 02, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add tests for FindFirstFileExA with FIND_FIRST_EX_CASE_SENSITIVE flag.
parent
20b5c99f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
8 deletions
+26
-8
file.c
dlls/kernel32/tests/file.c
+26
-8
No files found.
dlls/kernel32/tests/file.c
View file @
c9b43443
...
...
@@ -2608,22 +2608,38 @@ static void test_FindFirstFileExA(FINDEX_SEARCH_OPS search_ops, DWORD flags)
skip
(
"File system supports directory filtering
\n
"
);
/* Results from the previous call are not cleared */
ok
(
strcmp
(
search_results
.
cFileName
,
"dir1"
)
==
0
,
"Third entry should be 'dir1' is %s
\n
"
,
search_results
.
cFileName
);
FindClose
(
handle
);
goto
cleanup
;
}
else
{
ok
(
ret
,
"Fetching fourth file failed
\n
"
);
ok
(
CHECK_NAME
(
search_results
.
cFileName
),
"Invalid fourth entry - %s
\n
"
,
search_results
.
cFileName
);
ok
(
ret
,
"Fetching four
th file failed
\n
"
);
ok
(
CHECK_NAME
(
search_results
.
cFileName
),
"Invalid four
th entry - %s
\n
"
,
search_results
.
cFileName
);
ok
(
FindNextFileA
(
handle
,
&
search_results
),
"Fetching fif
th file failed
\n
"
);
ok
(
CHECK_NAME
(
search_results
.
cFileName
),
"Invalid fif
th entry - %s
\n
"
,
search_results
.
cFileName
);
ok
(
FindNextFileA
(
handle
,
&
search_results
),
"Fetching fifth file failed
\n
"
);
ok
(
CHECK_NAME
(
search_results
.
cFileName
),
"Invalid fifth entry - %s
\n
"
,
search_results
.
cFileName
);
ok
(
FindNextFileA
(
handle
,
&
search_results
)
==
FALSE
,
"Fetching sixth file should fail
\n
"
);
}
#undef CHECK_NAME
ok
(
FindNextFileA
(
handle
,
&
search_results
)
==
FALSE
,
"Fetching sixth file should fail
\n
"
);
FindClose
(
handle
);
/* Most Windows systems seem to ignore the FIND_FIRST_EX_CASE_SENSITIVE flag. Unofficial documentation
* suggests that there are registry keys and that it might depend on the used filesystem. */
SetLastError
(
0xdeadbeef
);
handle
=
pFindFirstFileExA
(
"TEST-DIR
\\
*"
,
FindExInfoStandard
,
&
search_results
,
search_ops
,
NULL
,
flags
);
if
(
flags
&
FIND_FIRST_EX_CASE_SENSITIVE
)
{
ok
(
handle
!=
INVALID_HANDLE_VALUE
||
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
"Unexpected error %x, expected valid handle or ERROR_PATH_NOT_FOUND
\n
"
,
GetLastError
());
trace
(
"FindFirstFileExA flag FIND_FIRST_EX_CASE_SENSITIVE is %signored
\n
"
,
(
handle
==
INVALID_HANDLE_VALUE
)
?
"not "
:
""
);
}
else
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"Unexpected error %x, expected valid handle
\n
"
,
GetLastError
());
if
(
handle
!=
INVALID_HANDLE_VALUE
)
FindClose
(
handle
);
cleanup:
DeleteFileA
(
"test-dir
\\
file1"
);
DeleteFileA
(
"test-dir
\\
file2"
);
...
...
@@ -4177,9 +4193,11 @@ START_TEST(file)
test_FindFirstFileA
();
test_FindNextFileA
();
test_FindFirstFileExA
(
0
,
0
);
test_FindFirstFileExA
(
0
,
FIND_FIRST_EX_CASE_SENSITIVE
);
test_FindFirstFileExA
(
0
,
FIND_FIRST_EX_LARGE_FETCH
);
/* FindExLimitToDirectories is ignored if the file system doesn't support directory filtering */
test_FindFirstFileExA
(
FindExSearchLimitToDirectories
,
0
);
test_FindFirstFileExA
(
FindExSearchLimitToDirectories
,
FIND_FIRST_EX_CASE_SENSITIVE
);
test_FindFirstFileExA
(
FindExSearchLimitToDirectories
,
FIND_FIRST_EX_LARGE_FETCH
);
test_LockFile
();
test_file_sharing
();
...
...
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