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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
directory.c
dlls/kernel32/tests/directory.c
+17
-5
No files found.
dlls/kernel32/tests/directory.c
View file @
4f7f110c
...
@@ -61,8 +61,11 @@ static void test_GetWindowsDirectoryW(void)
...
@@ -61,8 +61,11 @@ static void test_GetWindowsDirectoryW(void)
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
len_with_null
=
GetWindowsDirectoryW
(
NULL
,
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
;
return
;
}
ok
(
len_with_null
<=
MAX_PATH
,
"should fit into MAX_PATH
\n
"
);
ok
(
len_with_null
<=
MAX_PATH
,
"should fit into MAX_PATH
\n
"
);
lstrcpyW
(
buf
,
fooW
);
lstrcpyW
(
buf
,
fooW
);
...
@@ -124,8 +127,11 @@ static void test_GetSystemDirectoryW(void)
...
@@ -124,8 +127,11 @@ static void test_GetSystemDirectoryW(void)
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
static
const
WCHAR
fooW
[]
=
{
'f'
,
'o'
,
'o'
,
0
};
len_with_null
=
GetSystemDirectoryW
(
NULL
,
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
;
return
;
}
ok
(
len_with_null
<=
MAX_PATH
,
"should fit into MAX_PATH
\n
"
);
ok
(
len_with_null
<=
MAX_PATH
,
"should fit into MAX_PATH
\n
"
);
lstrcpyW
(
buf
,
fooW
);
lstrcpyW
(
buf
,
fooW
);
...
@@ -337,8 +343,11 @@ static void test_CreateDirectoryW(void)
...
@@ -337,8 +343,11 @@ static void test_CreateDirectoryW(void)
static
const
WCHAR
questionW
[]
=
{
'?'
,
0
};
static
const
WCHAR
questionW
[]
=
{
'?'
,
0
};
ret
=
CreateDirectoryW
(
NULL
,
NULL
);
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
;
return
;
}
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
"should not create NULL path ret %u err %u
\n
"
,
ret
,
GetLastError
());
"should not create NULL path ret %u err %u
\n
"
,
ret
,
GetLastError
());
...
@@ -441,8 +450,11 @@ static void test_RemoveDirectoryW(void)
...
@@ -441,8 +450,11 @@ static void test_RemoveDirectoryW(void)
GetTempPathW
(
MAX_PATH
,
tmpdir
);
GetTempPathW
(
MAX_PATH
,
tmpdir
);
lstrcatW
(
tmpdir
,
tmp_dir_name
);
lstrcatW
(
tmpdir
,
tmp_dir_name
);
ret
=
CreateDirectoryW
(
tmpdir
,
NULL
);
ret
=
CreateDirectoryW
(
tmpdir
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
return
;
{
win_skip
(
"CreateDirectoryW is not available
\n
"
);
return
;
}
ok
(
ret
==
TRUE
,
"CreateDirectoryW should always succeed
\n
"
);
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