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
7c160246
Commit
7c160246
authored
Nov 11, 2013
by
Zhenbo Li
Committed by
Alexandre Julliard
Nov 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Add tests for SHFileOperationA.
parent
fd018289
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
shlfileop.c
dlls/shell32/tests/shlfileop.c
+13
-0
No files found.
dlls/shell32/tests/shlfileop.c
View file @
7c160246
...
...
@@ -646,6 +646,19 @@ static void test_delete(void)
else
skip
(
"Test would show a dialog box
\n
"
);
/* delete an existent file and a nonexistent file */
shfo
.
pFrom
=
"test1.txt
\0
nonexistent.txt
\0
test2.txt
\0
"
;
shfo
.
wFunc
=
FO_DELETE
;
ret
=
SHFileOperationA
(
&
shfo
);
todo_wine
ok
(
ret
==
1026
||
ret
==
ERROR_FILE_NOT_FOUND
||
/* Vista */
broken
(
ret
==
ERROR_SUCCESS
),
/* NT4 */
"Expected 1026 or ERROR_FILE_NOT_FOUND, got %d
\n
"
,
ret
);
todo_wine
ok
(
file_exists
(
"test1.txt"
),
"Expected test1.txt to exist
\n
"
);
ok
(
file_exists
(
"test2.txt"
),
"Expected test2.txt to exist
\n
"
);
/* 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