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
cea45c53
Commit
cea45c53
authored
Sep 01, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Don't test unimplemented functions.
parent
4732f48f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
ordinal.c
dlls/shlwapi/tests/ordinal.c
+17
-5
No files found.
dlls/shlwapi/tests/ordinal.c
View file @
cea45c53
...
...
@@ -42,13 +42,19 @@ static void test_GetAcceptLanguagesA(void)
DWORD
buffersize
,
buffersize2
,
exactsize
;
char
buffer
[
100
];
if
(
!
pGetAcceptLanguagesA
)
if
(
!
pGetAcceptLanguagesA
)
{
win_skip
(
"GetAcceptLanguagesA is not available
\n
"
);
return
;
}
buffersize
=
sizeof
(
buffer
);
memset
(
buffer
,
0
,
sizeof
(
buffer
));
SetLastError
(
ERROR_SUCCESS
);
retval
=
pGetAcceptLanguagesA
(
buffer
,
&
buffersize
);
if
(
!
retval
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetAcceptLanguagesA is not implemented
\n
"
);
return
;
}
trace
(
"GetAcceptLanguagesA: retval %08x, size %08x, buffer (%s),"
" last error %u
\n
"
,
retval
,
buffersize
,
buffer
,
GetLastError
());
if
(
retval
!=
S_OK
)
{
...
...
@@ -58,7 +64,6 @@ static void test_GetAcceptLanguagesA(void)
ok
(
(
ERROR_NO_IMPERSONATION_TOKEN
==
GetLastError
())
||
(
ERROR_CLASS_DOES_NOT_EXIST
==
GetLastError
())
||
(
ERROR_PROC_NOT_FOUND
==
GetLastError
())
||
(
ERROR_CALL_NOT_IMPLEMENTED
==
GetLastError
())
||
(
ERROR_SUCCESS
==
GetLastError
()),
"last error set to %u
\n
"
,
GetLastError
());
exactsize
=
strlen
(
buffer
);
...
...
@@ -105,9 +110,9 @@ static void test_GetAcceptLanguagesA(void)
switch
(
retval
)
{
case
0L
:
if
(
buffersize
==
exactsize
)
{
ok
(
(
ERROR_SUCCESS
==
GetLastError
())
||
(
ERROR_CALL_NOT_IMPLEMENTED
==
GetLastError
())
||
ok
(
(
ERROR_SUCCESS
==
GetLastError
())
||
(
ERROR_PROC_NOT_FOUND
==
GetLastError
())
||
(
ERROR_NO_IMPERSONATION_TOKEN
==
GetLastError
()),
"last error wrong: got %u; expected ERROR_SUCCESS(NT4)/
ERROR_CALL_NOT_IMPLEMENTED(98/ME)/
"
"last error wrong: got %u; expected ERROR_SUCCESS(NT4)/"
"ERROR_PROC_NOT_FOUND(NT4)/ERROR_NO_IMPERSONATION_TOKEN(XP)
\n
"
,
GetLastError
());
ok
(
exactsize
==
strlen
(
buffer
),
"buffer content (length) wrong: got %08x, expected %08x
\n
"
,
lstrlenA
(
buffer
),
exactsize
);
...
...
@@ -370,7 +375,7 @@ static void test_GetShellSecurityDescriptor(void)
if
(
!
pGetShellSecurityDescriptor
)
{
skip
(
"GetShellSecurityDescriptor not available
\n
"
);
win_
skip
(
"GetShellSecurityDescriptor not available
\n
"
);
return
;
}
...
...
@@ -379,7 +384,14 @@ static void test_GetShellSecurityDescriptor(void)
psd
=
pGetShellSecurityDescriptor
(
rgsup
,
0
);
ok
(
psd
==
NULL
,
"GetShellSecurityDescriptor should fail
\n
"
);
SetLastError
(
0xdeadbeef
);
psd
=
pGetShellSecurityDescriptor
(
rgsup
,
2
);
if
(
psd
==
NULL
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
/* The previous calls to GetShellSecurityDescriptor don't set the last error */
win_skip
(
"GetShellSecurityDescriptor is not implemented
\n
"
);
return
;
}
ok
(
psd
!=
NULL
,
"GetShellSecurityDescriptor failed
\n
"
);
if
(
psd
!=
NULL
)
{
...
...
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