Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
51750374
Commit
51750374
authored
8 years ago
by
Robbie Shade
Browse files
Options
Downloads
Patches
Plain Diff
Check for the correct number of orphan callbacks in udp_server_test
parent
062ba7b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/core/iomgr/udp_server_test.c
+6
-4
6 additions, 4 deletions
test/core/iomgr/udp_server_test.c
with
6 additions
and
4 deletions
test/core/iomgr/udp_server_test.c
+
6
−
4
View file @
51750374
...
@@ -131,8 +131,9 @@ static void test_no_op_with_port_and_start(void) {
...
@@ -131,8 +131,9 @@ static void test_no_op_with_port_and_start(void) {
grpc_udp_server_destroy
(
&
exec_ctx
,
s
,
NULL
);
grpc_udp_server_destroy
(
&
exec_ctx
,
s
,
NULL
);
grpc_exec_ctx_finish
(
&
exec_ctx
);
grpc_exec_ctx_finish
(
&
exec_ctx
);
/* The server had a single FD, which should have been orphaned. */
/* The server had a single FD, which is orphaned once in *
GPR_ASSERT
(
g_number_of_orphan_calls
==
1
);
* deactivated_all_ports, and once in grpc_udp_server_destroy. */
GPR_ASSERT
(
g_number_of_orphan_calls
==
2
);
}
}
static
void
test_receive
(
int
number_of_clients
)
{
static
void
test_receive
(
int
number_of_clients
)
{
...
@@ -196,8 +197,9 @@ static void test_receive(int number_of_clients) {
...
@@ -196,8 +197,9 @@ static void test_receive(int number_of_clients) {
grpc_udp_server_destroy
(
&
exec_ctx
,
s
,
NULL
);
grpc_udp_server_destroy
(
&
exec_ctx
,
s
,
NULL
);
grpc_exec_ctx_finish
(
&
exec_ctx
);
grpc_exec_ctx_finish
(
&
exec_ctx
);
/* The server had a single FD, which should have been orphaned. */
/* The server had a single FD, which is orphaned once in *
GPR_ASSERT
(
g_number_of_orphan_calls
==
1
);
* deactivated_all_ports, and once in grpc_udp_server_destroy. */
GPR_ASSERT
(
g_number_of_orphan_calls
==
2
);
}
}
static
void
destroy_pollset
(
grpc_exec_ctx
*
exec_ctx
,
void
*
p
,
static
void
destroy_pollset
(
grpc_exec_ctx
*
exec_ctx
,
void
*
p
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment