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
44430761
Commit
44430761
authored
Nov 04, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add a test for the ncalrpc protocol sequence.
parent
4b33527f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
server.c
dlls/rpcrt4/tests/server.c
+26
-1
No files found.
dlls/rpcrt4/tests/server.c
View file @
44430761
...
...
@@ -1291,6 +1291,20 @@ client(const char *test)
ok
(
RPC_S_OK
==
RpcStringFree
(
&
binding
),
"RpcStringFree
\n
"
);
ok
(
RPC_S_OK
==
RpcBindingFree
(
&
IServer_IfHandle
),
"RpcBindingFree
\n
"
);
}
else
if
(
strcmp
(
test
,
"ncalrpc_basic"
)
==
0
)
{
static
unsigned
char
ncalrpc
[]
=
"ncalrpc"
;
static
unsigned
char
guid
[]
=
"00000000-4114-0704-2301-000000000000"
;
unsigned
char
*
binding
;
ok
(
RPC_S_OK
==
RpcStringBindingCompose
(
NULL
,
ncalrpc
,
NULL
,
guid
,
NULL
,
&
binding
),
"RpcStringBindingCompose
\n
"
);
ok
(
RPC_S_OK
==
RpcBindingFromStringBinding
(
binding
,
&
IServer_IfHandle
),
"RpcBindingFromStringBinding
\n
"
);
run_tests
();
ok
(
RPC_S_OK
==
RpcStringFree
(
&
binding
),
"RpcStringFree
\n
"
);
ok
(
RPC_S_OK
==
RpcBindingFree
(
&
IServer_IfHandle
),
"RpcBindingFree
\n
"
);
}
else
if
(
strcmp
(
test
,
"np_basic"
)
==
0
)
{
static
unsigned
char
np
[]
=
"ncacn_np"
;
...
...
@@ -1316,11 +1330,17 @@ server(void)
static
unsigned
char
port
[]
=
PORT
;
static
unsigned
char
np
[]
=
"ncacn_np"
;
static
unsigned
char
pipe
[]
=
PIPE
;
RPC_STATUS
status
,
iptcp_status
,
np_status
;
static
unsigned
char
ncalrpc
[]
=
"ncalrpc"
;
static
unsigned
char
guid
[]
=
"00000000-4114-0704-2301-000000000000"
;
RPC_STATUS
status
,
iptcp_status
,
np_status
,
ncalrpc_status
;
DWORD
ret
;
iptcp_status
=
RpcServerUseProtseqEp
(
iptcp
,
20
,
port
,
NULL
);
ok
(
iptcp_status
==
RPC_S_OK
,
"RpcServerUseProtseqEp(ncacn_ip_tcp) failed with status %d
\n
"
,
iptcp_status
);
ncalrpc_status
=
RpcServerUseProtseqEp
(
ncalrpc
,
0
,
guid
,
NULL
);
ok
(
ncalrpc_status
==
RPC_S_OK
,
"RpcServerUseProtseqEp(ncalrpc) failed with status %d
\n
"
,
ncalrpc_status
);
np_status
=
RpcServerUseProtseqEp
(
np
,
0
,
pipe
,
NULL
);
if
(
np_status
==
RPC_S_PROTSEQ_NOT_SUPPORTED
)
skip
(
"Protocol sequence ncacn_np is not supported
\n
"
);
...
...
@@ -1347,6 +1367,11 @@ server(void)
else
skip
(
"tcp_basic tests skipped due to earlier failure
\n
"
);
if
(
ncalrpc_status
==
RPC_S_OK
)
run_client
(
"ncalrpc_basic"
);
else
skip
(
"ncalrpc_basic tests skipped due to earlier failure
\n
"
);
if
(
np_status
==
RPC_S_OK
)
run_client
(
"np_basic"
);
else
...
...
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