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
4e6db1e1
Commit
4e6db1e1
authored
Sep 11, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix some test failures on several platforms.
parent
5669e67d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
file.c
dlls/ntdll/tests/file.c
+8
-4
No files found.
dlls/ntdll/tests/file.c
View file @
4e6db1e1
...
...
@@ -801,7 +801,8 @@ static void test_file_basic_information(void)
memset
(
&
fbi
,
0
,
sizeof
(
fbi
));
res
=
pNtQueryInformationFile
(
h
,
&
io
,
&
fbi
,
sizeof
fbi
,
FileBasicInformation
);
ok
(
res
==
STATUS_SUCCESS
,
"can't get attributes, res %x
\n
"
,
res
);
ok
(
fbi
.
FileAttributes
==
FILE_ATTRIBUTE_ARCHIVE
,
"attribute %x not FILE_ATTRIBUTE_ARCHIVE
\n
"
,
fbi
.
FileAttributes
);
ok
(
(
fbi
.
FileAttributes
&
FILE_ATTRIBUTE_ARCHIVE
)
==
FILE_ATTRIBUTE_ARCHIVE
,
"attribute %x not expected
\n
"
,
fbi
.
FileAttributes
);
/* Then SYSTEM */
/* Clear fbi to avoid setting times */
...
...
@@ -859,14 +860,16 @@ static void test_file_all_information(void)
/* Check default first */
res
=
pNtQueryInformationFile
(
h
,
&
io
,
&
fai_buf
.
fai
,
sizeof
fai_buf
,
FileAllInformation
);
ok
(
res
==
STATUS_SUCCESS
,
"can't get attributes, res %x
\n
"
,
res
);
ok
(
fai_buf
.
fai
.
BasicInformation
.
FileAttributes
==
FILE_ATTRIBUTE_ARCHIVE
,
"attribute %x not FILE_ATTRIBUTE_ARCHIVE
\n
"
,
fai_buf
.
fai
.
BasicInformation
.
FileAttributes
);
ok
(
(
fai_buf
.
fai
.
BasicInformation
.
FileAttributes
&
FILE_ATTRIBUTE_ARCHIVE
)
==
FILE_ATTRIBUTE_ARCHIVE
,
"attribute %x not expected
\n
"
,
fai_buf
.
fai
.
BasicInformation
.
FileAttributes
);
/* Then SYSTEM */
/* Clear fbi to avoid setting times */
memset
(
&
fai_buf
.
fai
.
BasicInformation
,
0
,
sizeof
(
fai_buf
.
fai
.
BasicInformation
));
fai_buf
.
fai
.
BasicInformation
.
FileAttributes
=
FILE_ATTRIBUTE_SYSTEM
;
res
=
pNtSetInformationFile
(
h
,
&
io
,
&
fai_buf
.
fai
,
sizeof
fai_buf
,
FileAllInformation
);
ok
(
res
==
STATUS_NOT_IMPLEMENTED
,
"shouldn't be able to set FileAllInformation, res %x
\n
"
,
res
);
todo_wine
ok
(
res
==
STATUS_INVALID_INFO_CLASS
,
"shouldn't be able to set FileAllInformation, res %x
\n
"
,
res
);
res
=
pNtSetInformationFile
(
h
,
&
io
,
&
fai_buf
.
fai
.
BasicInformation
,
sizeof
fai_buf
.
fai
.
BasicInformation
,
FileBasicInformation
);
ok
(
res
==
STATUS_SUCCESS
,
"can't set system attribute
\n
"
);
...
...
@@ -911,7 +914,8 @@ static void test_file_both_information(void)
memset
(
&
fbi
,
0
,
sizeof
(
fbi
));
res
=
pNtQueryInformationFile
(
h
,
&
io
,
&
fbi
,
sizeof
fbi
,
FileBothDirectoryInformation
);
ok
(
res
==
STATUS_NOT_IMPLEMENTED
,
"whoops, vista doesn't implement this one?
\n
"
);
todo_wine
ok
(
res
==
STATUS_INVALID_INFO_CLASS
,
"shouldn't be able to query FileBothDirectoryInformation, res %x
\n
"
,
res
);
CloseHandle
(
h
);
}
...
...
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