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
30bb78f0
Commit
30bb78f0
authored
Jan 09, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Skip a test on Vista.
parent
189ea312
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
shlfileop.c
dlls/shell32/tests/shlfileop.c
+16
-3
No files found.
dlls/shell32/tests/shlfileop.c
View file @
30bb78f0
...
...
@@ -601,20 +601,33 @@ static void test_delete(void)
ok
(
file_exists
(
"test1.txt"
),
"Expected test1.txt to exist
\n
"
);
}
/* delete a nonexistent file */
shfo
.
pFrom
=
"nonexistent.txt
\0
"
;
shfo
.
wFunc
=
FO_DELETE
;
ret
=
SHFileOperation
(
&
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
);
/* delete a dir, and then a file inside the dir, same as
* deleting a nonexistent file
*
* FIXME: Vista throws up a dialog window to ask if one.txt should be created
*/
if
(
ret
!=
ERROR_FILE_NOT_FOUND
)
{
/* Vista would throw up a dialog box that we can't suppress */
init_shfo_tests
();
shfo
.
pFrom
=
"testdir2
\0
testdir2
\\
one.txt
\0
"
;
shfo
.
wFunc
=
FO_DELETE
;
ret
=
SHFileOperation
(
&
shfo
);
ok
(
ret
==
ERROR_PATH_NOT_FOUND
||
broken
(
ret
==
ERROR_SUCCESS
),
/* NT4 */
"Expected ERROR_PATH_NOT_FOUND, got %d
\n
"
,
ret
);
ok
(
!
dir_exists
(
"testdir2"
),
"Expected testdir2 to not exist
\n
"
);
ok
(
!
file_exists
(
"testdir2
\\
one.txt"
),
"Expected testdir2
\\
one.txt to not exist
\n
"
);
}
else
skip
(
"Test would show a dialog box
\n
"
);
/* try the FOF_NORECURSION flag, continues deleting subdirs */
init_shfo_tests
();
...
...
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