aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-08-30 12:56:57 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-08-30 12:56:57 -0700
commitbcf6ca8d498c7f729aa164067b34d8f465b56084 (patch)
tree0efdbd64910d7d947c0ae00bc9c888904d6ea919 /test/core/iomgr
parent413e95b8ed8eda45b28d2f81835d5777097b8259 (diff)
Fix crash
Diffstat (limited to 'test/core/iomgr')
-rw-r--r--test/core/iomgr/resolve_address_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/iomgr/resolve_address_test.c b/test/core/iomgr/resolve_address_test.c
index cb156ee61e..7f5c4073d8 100644
--- a/test/core/iomgr/resolve_address_test.c
+++ b/test/core/iomgr/resolve_address_test.c
@@ -17,6 +17,7 @@
*/
#include "src/core/lib/iomgr/resolve_address.h"
+#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
@@ -250,9 +251,8 @@ static void test_unparseable_hostports(void) {
int main(int argc, char **argv) {
grpc_test_init(argc, argv);
+ grpc_init();
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
- grpc_iomgr_init(&exec_ctx);
- grpc_iomgr_start(&exec_ctx);
test_localhost();
test_default_port();
test_non_numeric_default_port();
@@ -262,7 +262,7 @@ int main(int argc, char **argv) {
test_invalid_ip_addresses();
test_unparseable_hostports();
grpc_executor_shutdown(&exec_ctx);
- grpc_iomgr_shutdown(&exec_ctx);
grpc_exec_ctx_finish(&exec_ctx);
+ grpc_shutdown();
return 0;
}