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
01ca32ac
Commit
01ca32ac
authored
Feb 25, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Remove win9x hacks.
parent
3ac1db56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
rpc.c
dlls/rpcrt4/tests/rpc.c
+4
-18
No files found.
dlls/rpcrt4/tests/rpc.c
View file @
01ca32ac
...
...
@@ -119,13 +119,9 @@ static void UuidConversionAndComparison(void) {
for
(
i1
=
0
;
i1
<
10
;
i1
++
)
{
Uuid1
=
Uuid_Table
[
i1
];
rslt
=
UuidToStringW
(
&
Uuid1
,
&
wstr
);
if
(
rslt
==
RPC_S_CANNOT_SUPPORT
)
{
/* Must be Win9x (no Unicode support), skip the tests */
break
;
}
ok
(
(
rslt
==
RPC_S_OK
),
"Simple UUID->WString copy
\n
"
);
ok
(
(
UuidFromStringW
(
wstr
,
&
Uuid2
)
==
RPC_S_OK
),
"Simple WString->UUID copy from generated UUID String
\n
"
);
ok
(
UuidEqual
(
&
Uuid1
,
&
Uuid2
,
&
rslt
),
"Uuid -> WString -> Uuid transform
\n
"
);
ok
(
(
rslt
==
RPC_S_OK
),
"Simple UUID->WString copy
\n
"
);
ok
(
(
UuidFromStringW
(
wstr
,
&
Uuid2
)
==
RPC_S_OK
),
"Simple WString->UUID copy from generated UUID String
\n
"
);
ok
(
UuidEqual
(
&
Uuid1
,
&
Uuid2
,
&
rslt
),
"Uuid -> WString -> Uuid transform
\n
"
);
/* invalid uuid tests -- size of valid UUID string=36 */
for
(
i2
=
0
;
i2
<
36
;
i2
++
)
{
wx
=
wstr
[
i2
];
...
...
@@ -265,8 +261,7 @@ todo_wine {
status
=
RpcBindingSetAuthInfo
(
IFoo_IfHandle
,
NULL
,
RPC_C_AUTHN_LEVEL_NONE
,
RPC_C_AUTHN_WINNT
,
NULL
,
RPC_C_AUTHZ_NAME
);
ok
(
status
==
RPC_S_OK
||
broken
(
status
==
RPC_S_UNKNOWN_AUTHN_SERVICE
),
/* win9x */
"RpcBindingSetAuthInfo failed (%u)
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingSetAuthInfo failed (%u)
\n
"
,
status
);
status
=
RpcBindingInqAuthInfo
(
IFoo_IfHandle
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
status
==
RPC_S_BINDING_HAS_NO_AUTH
,
"RpcBindingInqAuthInfo failed (%u)
\n
"
,
...
...
@@ -436,14 +431,8 @@ static void test_I_RpcMapWin32Status(void)
{
LONG
win32status
;
RPC_STATUS
rpc_status
;
BOOL
on_win9x
=
FALSE
;
BOOL
w2k3_up
=
FALSE
;
/* Win9x always returns the given status */
win32status
=
I_RpcMapWin32Status
(
ERROR_ACCESS_DENIED
);
if
(
win32status
==
ERROR_ACCESS_DENIED
)
on_win9x
=
TRUE
;
/* Windows 2003 and Vista return STATUS_UNSUCCESSFUL if given an unknown status */
win32status
=
I_RpcMapWin32Status
(
9999
);
if
(
win32status
==
STATUS_UNSUCCESSFUL
)
...
...
@@ -577,9 +566,6 @@ static void test_I_RpcMapWin32Status(void)
expected_win32status
=
rpc_status
;
}
if
(
on_win9x
)
missing
=
TRUE
;
ok
(
win32status
==
expected_win32status
||
broken
(
missing
&&
win32status
==
rpc_status
),
"I_RpcMapWin32Status(%d) should have returned 0x%x instead of 0x%x%s
\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