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
7cd9400b
Commit
7cd9400b
authored
Dec 01, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Added test case for . and .. directory entries.
parent
df29fd3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
file.c
dlls/kernel32/tests/file.c
+18
-0
No files found.
dlls/kernel32/tests/file.c
View file @
7cd9400b
...
...
@@ -1205,6 +1205,24 @@ static void test_FindFirstFileA(void)
strcat
(
buffer2
,
"*"
);
handle
=
FindFirstFileA
(
buffer2
,
&
data
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"FindFirstFile on %s should succeed
\n
"
,
buffer2
);
ok
(
strcmp
(
data
.
cFileName
,
"."
)
&&
strcmp
(
data
.
cFileName
,
".."
),
"FindFirstFile shouldn't return '%s' in drive root
\n
"
,
data
.
cFileName
);
if
(
FindNextFileA
(
handle
,
&
data
))
ok
(
strcmp
(
data
.
cFileName
,
"."
)
&&
strcmp
(
data
.
cFileName
,
".."
),
"FindNextFile shouldn't return '%s' in drive root
\n
"
,
data
.
cFileName
);
ok
(
FindClose
(
handle
)
==
TRUE
,
"Failed to close handle %s
\n
"
,
buffer2
);
/* try FindFirstFileA on windows dir */
GetWindowsDirectory
(
buffer2
,
sizeof
(
buffer2
)
);
strcat
(
buffer2
,
"
\\
*"
);
handle
=
FindFirstFileA
(
buffer2
,
&
data
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"FindFirstFile on %s should succeed
\n
"
,
buffer2
);
ok
(
!
strcmp
(
data
.
cFileName
,
"."
),
"FindFirstFile should return '.' first
\n
"
);
ok
(
FindNextFileA
(
handle
,
&
data
),
"FindNextFile failed
\n
"
);
ok
(
!
strcmp
(
data
.
cFileName
,
".."
),
"FindNextFile should return '..' as second entry
\n
"
);
while
(
FindNextFileA
(
handle
,
&
data
))
ok
(
strcmp
(
data
.
cFileName
,
"."
)
&&
strcmp
(
data
.
cFileName
,
".."
),
"FindNextFile shouldn't return '%s'
\n
"
,
data
.
cFileName
);
ok
(
FindClose
(
handle
)
==
TRUE
,
"Failed to close handle %s
\n
"
,
buffer2
);
/* try FindFirstFileA on "C:\foo\" */
...
...
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