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
0cc619cc
Commit
0cc619cc
authored
Mar 30, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add more NtCreateFile tests.
parent
b3369e06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
file.c
dlls/ntdll/tests/file.c
+17
-13
No files found.
dlls/ntdll/tests/file.c
View file @
0cc619cc
...
...
@@ -1568,13 +1568,19 @@ static void test_NtCreateFile(void)
/* 3*/
{
FILE_OPEN
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_OPENED
,
FILE_ATTRIBUTE_ARCHIVE
,
TRUE
},
/* 4*/
{
FILE_OPEN
,
FILE_ATTRIBUTE_READONLY
,
STATUS_OBJECT_NAME_NOT_FOUND
,
0
,
0
,
FALSE
},
/* 5*/
{
FILE_OPEN_IF
,
0
,
0
,
FILE_CREATED
,
FILE_ATTRIBUTE_ARCHIVE
,
FALSE
},
/* 6*/
{
FILE_OPEN_IF
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_OPENED
,
FILE_ATTRIBUTE_ARCHIVE
,
FALSE
},
/* 7*/
{
FILE_OVERWRITE
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_OVERWRITTEN
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
FALSE
},
/* 8*/
{
FILE_OVERWRITE_IF
,
0
,
STATUS_ACCESS_DENIED
,
0
,
0
,
FALSE
},
/* 9*/
{
FILE_OVERWRITE_IF
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_OVERWRITTEN
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
FALSE
},
/*10*/
{
FILE_SUPERSEDE
,
0
,
0
,
FILE_SUPERSEDED
,
FILE_ATTRIBUTE_ARCHIVE
,
FALSE
},
/*11*/
{
FILE_SUPERSEDE
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_SUPERSEDED
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
TRUE
},
/*12*/
{
FILE_SUPERSEDE
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_CREATED
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
TRUE
}
/* 6*/
{
FILE_OPEN_IF
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_OPENED
,
FILE_ATTRIBUTE_ARCHIVE
,
TRUE
},
/* 7*/
{
FILE_OPEN_IF
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_CREATED
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
FALSE
},
/* 8*/
{
FILE_OPEN_IF
,
0
,
0
,
FILE_OPENED
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
FALSE
},
/* 9*/
{
FILE_OVERWRITE
,
0
,
STATUS_ACCESS_DENIED
,
0
,
0
,
TRUE
},
/*10*/
{
FILE_OVERWRITE
,
0
,
STATUS_OBJECT_NAME_NOT_FOUND
,
0
,
0
,
FALSE
},
/*11*/
{
FILE_CREATE
,
0
,
0
,
FILE_CREATED
,
FILE_ATTRIBUTE_ARCHIVE
,
FALSE
},
/*12*/
{
FILE_OVERWRITE
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_OVERWRITTEN
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
FALSE
},
/*13*/
{
FILE_OVERWRITE_IF
,
0
,
STATUS_ACCESS_DENIED
,
0
,
0
,
TRUE
},
/*14*/
{
FILE_OVERWRITE_IF
,
0
,
0
,
FILE_CREATED
,
FILE_ATTRIBUTE_ARCHIVE
,
FALSE
},
/*15*/
{
FILE_OVERWRITE_IF
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_OVERWRITTEN
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
FALSE
},
/*16*/
{
FILE_SUPERSEDE
,
0
,
0
,
FILE_SUPERSEDED
,
FILE_ATTRIBUTE_ARCHIVE
,
FALSE
},
/*17*/
{
FILE_SUPERSEDE
,
FILE_ATTRIBUTE_READONLY
,
0
,
FILE_SUPERSEDED
,
FILE_ATTRIBUTE_ARCHIVE
|
FILE_ATTRIBUTE_READONLY
,
TRUE
},
/*18*/
{
FILE_SUPERSEDE
,
0
,
0
,
FILE_CREATED
,
FILE_ATTRIBUTE_ARCHIVE
,
TRUE
}
};
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
static
const
WCHAR
dotW
[]
=
{
'.'
,
0
};
...
...
@@ -1610,17 +1616,15 @@ static void test_NtCreateFile(void)
ok
(
status
==
td
[
i
].
status
,
"%d: expected %#x got %#x
\n
"
,
i
,
td
[
i
].
status
,
status
);
CloseHandle
(
handle
);
SetFileAttributesW
(
path
,
FILE_ATTRIBUTE_ARCHIVE
);
continue
;
}
ok
(
status
==
td
[
i
].
status
,
"%d: expected %#x got %#x
\n
"
,
i
,
td
[
i
].
status
,
status
);
if
(
td
[
i
].
needs_cleanup
)
DeleteFileW
(
path
);
if
(
status
==
STATUS_ACCESS_DENIED
)
{
SetFileAttributesW
(
path
,
FILE_ATTRIBUTE_ARCHIVE
);
continue
;
}
ok
(
status
==
td
[
i
].
status
,
"%d: expected %#x got %#x
\n
"
,
i
,
td
[
i
].
status
,
status
);
if
(
!
status
)
{
ok
(
io
.
Information
==
td
[
i
].
result
,
"%d: expected %#x got %#lx
\n
"
,
i
,
td
[
i
].
result
,
io
.
Information
);
...
...
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