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
44c9f6a1
Commit
44c9f6a1
authored
Dec 24, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix a few test failures on Vista and W2K8.
parent
3cd817b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
15 deletions
+53
-15
shlfileop.c
dlls/shell32/tests/shlfileop.c
+53
-15
No files found.
dlls/shell32/tests/shlfileop.c
View file @
44c9f6a1
...
...
@@ -1209,7 +1209,11 @@ static void test_copy(void)
retval
==
ERROR_ACCESS_DENIED
,
/* win2k */
"Expected 1148, 1026 or ERROR_ACCESS_DENIED, got %d
\n
"
,
retval
);
ok
(
DeleteFileA
(
"one.txt"
),
"Expected file to exist
\n
"
);
ok
(
!
DeleteFileA
(
"two.txt"
),
"Expected file to not exist
\n
"
);
if
(
file_exists
(
"two.txt"
))
/* Vista and W2K8 (broken or new behavior ?) */
ok
(
RemoveDirectory
(
"two.txt"
),
"Expected two.txt to exist
\n
"
);
else
ok
(
!
DeleteFileA
(
"two.txt"
),
"Expected file to not exist
\n
"
);
createTestFile
(
"one.txt"
);
...
...
@@ -1253,7 +1257,11 @@ static void test_copy(void)
retval
==
ERROR_ACCESS_DENIED
,
/* win2k */
"Expected 1148, 1026 or ERROR_ACCESS_DENIED, got %d
\n
"
,
retval
);
ok
(
DeleteFileA
(
"one.txt"
),
"Expected file to exist
\n
"
);
ok
(
!
DeleteFileA
(
"two.txt"
),
"Expected file to not exist
\n
"
);
if
(
file_exists
(
"two.txt"
))
/* Vista and W2K8 (broken or new behavior ?) */
ok
(
RemoveDirectory
(
"two.txt"
),
"Expected two.txt to exist
\n
"
);
else
ok
(
!
DeleteFileA
(
"two.txt"
),
"Expected file to not exist
\n
"
);
createTestFile
(
"one.txt"
);
...
...
@@ -1284,13 +1292,23 @@ static void test_copy(void)
shfo
.
pTo
=
to
;
shfo
.
fFlags
=
FOF_NOCONFIRMATION
|
FOF_SILENT
|
FOF_NOERRORUI
;
retval
=
SHFileOperation
(
&
shfo
);
expect_retval
(
ERROR_CANCELLED
,
DE_OPCANCELLED
/* Win9x, NT4 */
);
ok
(
!
DeleteFileA
(
"threedir
\\
one.txt"
),
"Expected file to not exist
\n
"
);
ok
(
!
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to not exist
\n
"
);
if
(
retval
==
ERROR_SUCCESS
)
{
/* Vista and W2K8 (broken or new behavior ?) */
ok
(
DeleteFileA
(
"threedir
\\
one.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to exist
\n
"
);
ok
(
RemoveDirectoryA
(
"threedir"
),
"Expected dir to exist
\n
"
);
}
else
{
expect_retval
(
ERROR_CANCELLED
,
DE_OPCANCELLED
/* Win9x, NT4 */
);
ok
(
!
DeleteFileA
(
"threedir
\\
one.txt"
),
"Expected file to not exist
\n
"
);
ok
(
!
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to not exist
\n
"
);
ok
(
!
DeleteFileA
(
"threedir"
),
"Expected file to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"threedir"
),
"Expected dir to not exist
\n
"
);
}
ok
(
DeleteFileA
(
"one.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"two.txt"
),
"Expected file to exist
\n
"
);
ok
(
!
DeleteFileA
(
"threedir"
),
"Expected file to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"threedir"
),
"Expected dir to not exist
\n
"
);
createTestFile
(
"one.txt"
);
createTestFile
(
"two.txt"
);
...
...
@@ -1365,13 +1383,23 @@ static void test_copy(void)
FOF_SILENT
|
FOF_NOERRORUI
;
retval
=
SHFileOperation
(
&
shfo
);
ok
(
retval
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
retval
);
ok
(
DeleteFileA
(
"threedir
\\
one.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"one.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"two.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"threedir
\\
one.txt"
),
"Expected file to exist
\n
"
);
if
(
file_exists
(
"fourdir"
))
{
/* Vista and W2K8 (broken or new behavior ?) */
ok
(
!
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to not exist
\n
"
);
ok
(
DeleteFileA
(
"fourdir
\\
two.txt"
),
"Expected file to exist
\n
"
);
RemoveDirectoryA
(
"fourdir"
);
}
else
{
ok
(
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to exist
\n
"
);
ok
(
!
DeleteFileA
(
"fourdir"
),
"Expected file to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"fourdir"
),
"Expected dir to not exist
\n
"
);
}
ok
(
RemoveDirectoryA
(
"threedir"
),
"Expected dir to exist
\n
"
);
ok
(
!
DeleteFileA
(
"fourdir"
),
"Expected file to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"fourdir"
),
"Expected dir to not exist
\n
"
);
createTestFile
(
"one.txt"
);
createTestFile
(
"two.txt"
);
...
...
@@ -1409,13 +1437,23 @@ static void test_copy(void)
FOF_SILENT
|
FOF_NOERRORUI
;
retval
=
SHFileOperation
(
&
shfo
);
ok
(
retval
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
retval
);
ok
(
DeleteFileA
(
"threedir
\\
one.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"one.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"two.txt"
),
"Expected file to exist
\n
"
);
ok
(
DeleteFileA
(
"threedir
\\
one.txt"
),
"Expected file to exist
\n
"
);
if
(
file_exists
(
"fourdir"
))
{
/* Vista and W2K8 (broken or new behavior ?) */
ok
(
!
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to not exist
\n
"
);
ok
(
DeleteFileA
(
"fourdir
\\
two.txt"
),
"Expected file to exist
\n
"
);
RemoveDirectoryA
(
"fourdir"
);
}
else
{
ok
(
DeleteFileA
(
"threedir
\\
two.txt"
),
"Expected file to exist
\n
"
);
ok
(
!
DeleteFileA
(
"fourdir"
),
"Expected file to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"fourdir"
),
"Expected dit to not exist
\n
"
);
}
ok
(
RemoveDirectoryA
(
"threedir"
),
"Expected dir to exist
\n
"
);
ok
(
!
DeleteFileA
(
"fourdir"
),
"Expected file to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"fourdir"
),
"Expected dit to not exist
\n
"
);
ok
(
!
DeleteFileA
(
"five"
),
"Expected file to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"five"
),
"Expected dit to not 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