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
0301c09d
Commit
0301c09d
authored
Feb 23, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp120/tests: Run _Unlink tests inside temp directory.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
00210255
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
msvcp120.c
dlls/msvcp120/tests/msvcp120.c
+7
-0
No files found.
dlls/msvcp120/tests/msvcp120.c
View file @
0301c09d
...
...
@@ -1614,6 +1614,7 @@ static void test_tr2_sys__Symlink(void)
static
void
test_tr2_sys__Unlink
(
void
)
{
char
temp_path
[
MAX_PATH
],
current_path
[
MAX_PATH
];
int
ret
,
i
;
HANDLE
file
;
LARGE_INTEGER
file_size
;
...
...
@@ -1631,6 +1632,10 @@ static void test_tr2_sys__Unlink(void)
{
NULL
,
ERROR_PATH_NOT_FOUND
,
FALSE
}
};
GetCurrentDirectoryA
(
MAX_PATH
,
current_path
);
GetTempPathA
(
MAX_PATH
,
temp_path
);
ok
(
SetCurrentDirectoryA
(
temp_path
),
"SetCurrentDirectoryA to temp_path failed
\n
"
);
ret
=
p_tr2_sys__Make_dir
(
"tr2_test_dir"
);
ok
(
ret
==
1
,
"tr2_sys__Make_dir(): expect 1 got %d
\n
"
,
ret
);
file
=
CreateFileA
(
"tr2_test_dir/f1"
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
...
...
@@ -1664,6 +1669,8 @@ static void test_tr2_sys__Unlink(void)
ok
(
!
DeleteFileA
(
"tr2_test_dir/f1_symlink"
),
"expect tr2_test_dir/f1_symlink not to exist
\n
"
);
ret
=
p_tr2_sys__Remove_dir
(
"tr2_test_dir"
);
ok
(
ret
==
1
,
"tr2_sys__Remove_dir(): expect 1 got %d
\n
"
,
ret
);
ok
(
SetCurrentDirectoryA
(
current_path
),
"SetCurrentDirectoryA failed
\n
"
);
}
static
int
__cdecl
thrd_thread
(
void
*
arg
)
...
...
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