Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
f39c64a8
Commit
f39c64a8
authored
11 years ago
by
Zhenbo Li
Committed by
Alexandre Julliard
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
kernel32/tests: Add some tests for DeleteFileA.
parent
3740b2bb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/kernel32/tests/file.c
+12
-0
12 additions, 0 deletions
dlls/kernel32/tests/file.c
with
12 additions
and
0 deletions
dlls/kernel32/tests/file.c
+
12
−
0
View file @
f39c64a8
...
...
@@ -1632,6 +1632,9 @@ static void test_DeleteFileA( void )
GetLastError
()
==
ERROR_INVALID_FUNCTION
),
"DeleteFileA(
\"
nul
\"
) returned ret=%d error=%d
\n
"
,
ret
,
GetLastError
());
ret
=
DeleteFileA
(
"nonexist.txt"
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"DeleteFileA(
\"
nonexist.txt
\"
) returned ret=%d error=%d
\n
"
,
ret
,
GetLastError
());
GetTempPathA
(
MAX_PATH
,
temp_path
);
GetTempFileNameA
(
temp_path
,
"tst"
,
0
,
temp_file
);
...
...
@@ -1650,6 +1653,15 @@ todo_wine
ret
=
DeleteFileA
(
temp_file
);
todo_wine
ok
(
!
ret
,
"DeleteFile should fail
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
CreateDirectoryA
(
"testdir"
,
NULL
);
ok
(
ret
,
"CreateDirectory failed, got err %d
\n
"
,
GetLastError
());
ret
=
DeleteFileA
(
"testdir"
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"Expected ERROR_ACCESS_DENIED, got error %d
\n
"
,
GetLastError
());
ret
=
RemoveDirectoryA
(
"testdir"
);
ok
(
ret
,
"Remove a directory failed, got error %d
\n
"
,
GetLastError
());
}
static
void
test_DeleteFileW
(
void
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment