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
4f7f110c
Commit
4f7f110c
authored
May 18, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
May 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Correctly skip tests when the Unicode directory functions are not available.
parent
77fa32a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
directory.c
dlls/kernel32/tests/directory.c
+16
-4
No files found.
dlls/kernel32/tests/directory.c
View file @
4f7f110c
...
...
@@ -61,8 +61,11 @@ static void test_GetWindowsDirectoryW(void)
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
len_with_null
=
GetWindowsDirectoryW
(
NULL
,
0
);
if
(
len_with_null
==
0
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
len_with_null
==
0
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetWindowsDirectoryW is not implemented
\n
"
);
return
;
}
ok
(
len_with_null
<=
MAX_PATH
,
"should fit into MAX_PATH
\n
"
);
lstrcpyW
(
buf
,
fooW
);
...
...
@@ -124,8 +127,11 @@ static void test_GetSystemDirectoryW(void)
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
len_with_null
=
GetSystemDirectoryW
(
NULL
,
0
);
if
(
len_with_null
==
0
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
len_with_null
==
0
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetSystemDirectoryW is not available
\n
"
);
return
;
}
ok
(
len_with_null
<=
MAX_PATH
,
"should fit into MAX_PATH
\n
"
);
lstrcpyW
(
buf
,
fooW
);
...
...
@@ -337,8 +343,11 @@ static void test_CreateDirectoryW(void)
static
const
WCHAR
questionW
[]
=
{
'?'
,
0
};
ret
=
CreateDirectoryW
(
NULL
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"CreateDirectoryW is not available
\n
"
);
return
;
}
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
"should not create NULL path ret %u err %u
\n
"
,
ret
,
GetLastError
());
...
...
@@ -441,8 +450,11 @@ static void test_RemoveDirectoryW(void)
GetTempPathW
(
MAX_PATH
,
tmpdir
);
lstrcatW
(
tmpdir
,
tmp_dir_name
);
ret
=
CreateDirectoryW
(
tmpdir
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"CreateDirectoryW is not available
\n
"
);
return
;
}
ok
(
ret
==
TRUE
,
"CreateDirectoryW should always succeed
\n
"
);
...
...
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