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
c7093feb
Commit
c7093feb
authored
Aug 26, 2008
by
Jeff Zaroyko
Committed by
Alexandre Julliard
Aug 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add a test for unlinking non-empty directories.
parent
a34f4ae8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
file.c
dlls/msvcrt/tests/file.c
+14
-0
No files found.
dlls/msvcrt/tests/file.c
View file @
c7093feb
...
...
@@ -1085,6 +1085,19 @@ static void test_pipes(const char* selfname)
ok
(
fclose
(
file
)
==
0
,
"unable to close the pipe: %d
\n
"
,
errno
);
}
static
void
test_unlink
(
void
)
{
FILE
*
file
;
ok
(
mkdir
(
"test_unlink"
)
==
0
,
"unable to create test dir
\n
"
);
file
=
fopen
(
"test_unlink
\\
empty"
,
"w"
);
ok
(
file
!=
NULL
,
"unable to create test file
\n
"
);
if
(
file
)
fclose
(
file
);
todo_wine
ok
(
_unlink
(
"test_unlink"
)
!=
0
,
"unlinking a non-empty directory must fail
\n
"
);
unlink
(
"test_unlink
\\
empty"
);
rmdir
(
"test_unlink"
);
}
START_TEST
(
file
)
{
int
arg_c
;
...
...
@@ -1109,6 +1122,7 @@ START_TEST(file)
test_file_write_read
();
test_chsize
();
test_stat
();
test_unlink
();
/* testing stream I/O */
test_fdopen
();
...
...
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