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
3f884c2c
Commit
3f884c2c
authored
Nov 29, 2004
by
Gunnar Dalsnes
Committed by
Alexandre Julliard
Nov 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test to make sure that CreateDirectoryA/W does not create
multiple non-existing directories in the path given.
parent
6199da39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
directory.c
dlls/kernel/tests/directory.c
+18
-0
No files found.
dlls/kernel/tests/directory.c
View file @
3f884c2c
...
...
@@ -208,6 +208,14 @@ static void test_CreateDirectoryA(void)
"CreateDirectoryA with * wildcard name should fail, ret=%s error=%ld
\n
"
,
ret
?
" True"
:
"False"
,
GetLastError
());
ret
=
RemoveDirectoryA
(
tmpdir
);
GetTempPathA
(
MAX_PATH
,
tmpdir
);
lstrcatA
(
tmpdir
,
"Please Remove Me/Please Remove Me"
);
ret
=
CreateDirectoryA
(
tmpdir
,
NULL
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
"CreateDirectoryA with multiple non existing directories in path should fail
\n
"
);
ret
=
RemoveDirectoryA
(
tmpdir
);
}
static
void
test_CreateDirectoryW
(
void
)
...
...
@@ -217,6 +225,7 @@ static void test_CreateDirectoryW(void)
static
const
WCHAR
empty_strW
[]
=
{
0
};
static
const
WCHAR
tmp_dir_name
[]
=
{
'P'
,
'l'
,
'e'
,
'a'
,
's'
,
'e'
,
' '
,
'R'
,
'e'
,
'm'
,
'o'
,
'v'
,
'e'
,
' '
,
'M'
,
'e'
,
0
};
static
const
WCHAR
dotW
[]
=
{
'.'
,
0
};
static
const
WCHAR
slashW
[]
=
{
'/'
,
0
};
static
const
WCHAR
dotdotW
[]
=
{
'.'
,
'.'
,
0
};
static
const
WCHAR
questionW
[]
=
{
'?'
,
0
};
...
...
@@ -269,6 +278,15 @@ static void test_CreateDirectoryW(void)
"CreateDirectoryW with * wildcard name should fail with error 183, ret=%s error=%ld
\n
"
,
ret
?
" True"
:
"False"
,
GetLastError
());
ret
=
RemoveDirectoryW
(
tmpdir
);
GetTempPathW
(
MAX_PATH
,
tmpdir
);
lstrcatW
(
tmpdir
,
tmp_dir_name
);
lstrcatW
(
tmpdir
,
slashW
);
lstrcatW
(
tmpdir
,
tmp_dir_name
);
ret
=
CreateDirectoryW
(
tmpdir
,
NULL
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
"CreateDirectoryW with multiple non existing directories in path should fail
\n
"
);
ret
=
RemoveDirectoryW
(
tmpdir
);
}
static
void
test_RemoveDirectoryA
(
void
)
...
...
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