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
50dfe977
Commit
50dfe977
authored
Aug 07, 2023
by
Joel Holdsworth
Committed by
Alexandre Julliard
Sep 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Update link test to reflect Windows 11 behaviour.
Signed-off-by:
Joel Holdsworth
<
joel@airwebreathe.org.uk
>
parent
d63acb3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
file.c
dlls/ntdll/tests/file.c
+18
-9
No files found.
dlls/ntdll/tests/file.c
View file @
50dfe977
...
...
@@ -2413,7 +2413,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_FILE_IS_A_DIRECTORY
,
"res expected STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"file should exist
\n
"
);
...
...
@@ -2460,7 +2461,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_FILE_IS_A_DIRECTORY
,
"res expected STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"file should exist
\n
"
);
...
...
@@ -2494,7 +2496,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_OBJECT_NAME_COLLISION
||
res
==
STATUS_FILE_IS_A_DIRECTORY
/* > Win XP */
,
"res expected STATUS_OBJECT_NAME_COLLISION or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
...
...
@@ -2531,7 +2534,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_OBJECT_NAME_COLLISION
||
res
==
STATUS_FILE_IS_A_DIRECTORY
/* > Win XP */
,
"res expected STATUS_OBJECT_NAME_COLLISION or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
...
...
@@ -2566,7 +2570,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_FILE_IS_A_DIRECTORY
,
"res expected STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"file should exist
\n
"
);
...
...
@@ -2602,7 +2607,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_FILE_IS_A_DIRECTORY
,
"res expected STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"file should exist
\n
"
);
...
...
@@ -2639,7 +2645,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_OBJECT_NAME_COLLISION
||
res
==
STATUS_FILE_IS_A_DIRECTORY
/* > Win XP */
,
"res expected STATUS_OBJECT_NAME_COLLISION or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
...
...
@@ -2676,7 +2683,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_FILE_IS_A_DIRECTORY
,
"res expected STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"file should exist
\n
"
);
...
...
@@ -2715,7 +2723,8 @@ static void test_file_link_information(void)
io
.
Status
=
0xdeadbeef
;
res
=
pNtSetInformationFile
(
handle
,
&
io
,
fli
,
sizeof
(
FILE_LINK_INFORMATION
)
+
fli
->
FileNameLength
,
FileLinkInformation
);
todo_wine
ok
(
io
.
Status
==
0xdeadbeef
,
"io.Status expected 0xdeadbeef, got %lx
\n
"
,
io
.
Status
);
ok
(
io
.
Status
==
0xdeadbeef
||
io
.
Status
==
STATUS_FILE_IS_A_DIRECTORY
,
"io.Status expected 0xdeadbeef or STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
io
.
Status
);
ok
(
res
==
STATUS_FILE_IS_A_DIRECTORY
,
"res expected STATUS_FILE_IS_A_DIRECTORY, got %lx
\n
"
,
res
);
fileDeleted
=
GetFileAttributesW
(
oldpath
)
==
INVALID_FILE_ATTRIBUTES
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
;
ok
(
!
fileDeleted
,
"file should exist
\n
"
);
...
...
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