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
fa8e8c25
Commit
fa8e8c25
authored
Nov 20, 2013
by
Zhenbo Li
Committed by
Alexandre Julliard
Nov 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Delete a nonexistent file in an existent dir or a nonexistent dir.
parent
c4761d80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
shlfileop.c
dlls/shell32/tests/shlfileop.c
+16
-0
No files found.
dlls/shell32/tests/shlfileop.c
View file @
fa8e8c25
...
...
@@ -660,6 +660,22 @@ static void test_delete(void)
ok
(
file_exists
(
"test1.txt"
),
"Expected test1.txt to exist
\n
"
);
ok
(
file_exists
(
"test2.txt"
),
"Expected test2.txt to exist
\n
"
);
/* delete a nonexistent file in an existent dir or a nonexistent dir */
init_shfo_tests
();
shfo
.
pFrom
=
"testdir2
\\
nonexistent.txt
\0
"
;
ret
=
SHFileOperationA
(
&
shfo
);
todo_wine
ok
(
ret
==
ERROR_FILE_NOT_FOUND
||
/* Vista */
broken
(
ret
==
0x402
)
||
/* XP */
broken
(
ret
==
ERROR_SUCCESS
),
/* NT4 */
"Expected 0x402 or ERROR_FILE_NOT_FOUND, got %x
\n
"
,
ret
);
shfo
.
pFrom
=
"nonexistent
\\
one.txt
\0
"
;
ret
=
SHFileOperationA
(
&
shfo
);
todo_wine
ok
(
ret
==
DE_INVALIDFILES
||
/* Vista or later */
broken
(
ret
==
0x402
),
/* XP */
"Expected 0x402 or DE_INVALIDFILES, got %x
\n
"
,
ret
);
/* try the FOF_NORECURSION flag, continues deleting subdirs */
init_shfo_tests
();
shfo
.
pFrom
=
"testdir2
\0
"
;
...
...
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