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
9a6781f8
Commit
9a6781f8
authored
Mar 16, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Added more server listening tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d0ed6d10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
server.c
dlls/rpcrt4/tests/server.c
+39
-0
No files found.
dlls/rpcrt4/tests/server.c
View file @
9a6781f8
...
...
@@ -1754,6 +1754,40 @@ server(void)
status
=
RpcMgmtWaitServerListen
();
ok
(
status
==
RPC_S_OK
,
"RpcMgmtWaitServerListening failed with status %d
\n
"
,
status
);
}
CloseHandle
(
stop_event
);
stop_event
=
NULL
;
}
static
void
test_server_listening
(
void
)
{
static
unsigned
char
np
[]
=
"ncacn_np"
;
static
unsigned
char
pipe
[]
=
PIPE
"listen_test"
;
RPC_STATUS
status
;
status
=
RpcServerUseProtseqEpA
(
np
,
0
,
pipe
,
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcServerUseProtseqEp(ncacn_np) failed with status %d
\n
"
,
status
);
status
=
RpcServerRegisterIf
(
s_IServer_v0_0_s_ifspec
,
NULL
,
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcServerRegisterIf failed with status %d
\n
"
,
status
);
test_is_server_listening
(
NULL
,
RPC_S_NOT_LISTENING
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
ok
(
status
==
RPC_S_OK
,
"RpcServerListen failed with status %d
\n
"
,
status
);
test_is_server_listening
(
NULL
,
RPC_S_OK
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
ok
(
status
==
RPC_S_ALREADY_LISTENING
,
"RpcServerListen failed with status %d
\n
"
,
status
);
status
=
RpcMgmtStopServerListening
(
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcMgmtStopServerListening
\n
"
);
test_is_server_listening
(
NULL
,
RPC_S_NOT_LISTENING
);
status
=
RpcMgmtWaitServerListen
();
ok
(
status
==
RPC_S_OK
,
"RpcMgmtWaitServerListening failed with status %d
\n
"
,
status
);
status
=
RpcMgmtWaitServerListen
();
ok
(
status
==
RPC_S_NOT_LISTENING
,
"RpcMgmtWaitServerListening failed with status %d
\n
"
,
status
);
}
static
BOOL
is_process_elevated
(
void
)
...
...
@@ -1911,6 +1945,10 @@ START_TEST(server)
}
RpcEndExcept
}
else
if
(
argc
==
4
)
{
test_server_listening
();
}
else
{
if
(
firewall_enabled
)
...
...
@@ -1924,6 +1962,7 @@ START_TEST(server)
}
}
server
();
run_client
(
"test listen"
);
if
(
firewall_enabled
)
set_firewall
(
APP_REMOVE
);
}
...
...
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