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
e0bbfc35
Commit
e0bbfc35
authored
Sep 25, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Oct 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add additional tests for GetFileAttributesExW.
Signed-off-by:
Michael Müller
<
michael@fds-team.de
>
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
parent
83bfda7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
file.c
dlls/kernel32/tests/file.c
+25
-0
No files found.
dlls/kernel32/tests/file.c
View file @
e0bbfc35
...
...
@@ -4650,6 +4650,30 @@ todo_wine
CloseHandle
(
file
);
}
static
void
test_GetFileAttributesExW
(
void
)
{
static
const
WCHAR
path1
[]
=
{
'\\'
,
'\\'
,
'?'
,
'\\'
,
0
};
static
const
WCHAR
path2
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
0
};
static
const
WCHAR
path3
[]
=
{
'\\'
,
'D'
,
'o'
,
's'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
'\\'
,
0
};
WIN32_FILE_ATTRIBUTE_DATA
info
;
BOOL
ret
;
SetLastError
(
0xdeadbeef
);
ret
=
GetFileAttributesExW
(
path1
,
GetFileExInfoStandard
,
&
info
);
ok
(
!
ret
,
"GetFileAttributesExW succeeded
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_NAME
,
"Expected error ERROR_INVALID_NAME, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
GetFileAttributesExW
(
path2
,
GetFileExInfoStandard
,
&
info
);
ok
(
!
ret
,
"GetFileAttributesExW succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_NAME
,
"Expected error ERROR_INVALID_NAME, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
GetFileAttributesExW
(
path3
,
GetFileExInfoStandard
,
&
info
);
ok
(
!
ret
,
"GetFileAttributesExW succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected error ERROR_FILE_NOT_FOUND, got %u
\n
"
,
GetLastError
());
}
START_TEST
(
file
)
{
InitFunctionPointers
();
...
...
@@ -4706,4 +4730,5 @@ START_TEST(file)
test_GetFinalPathNameByHandleA
();
test_GetFinalPathNameByHandleW
();
test_SetFileInformationByHandle
();
test_GetFileAttributesExW
();
}
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