Add a test of repeatedly calling grpc_init then grpc_shutdown

pull/11803/head
Craig Tiller 7 years ago
parent 22d9516434
commit a7e5a0bd9c
  1. 8
      test/core/surface/init_test.c

@ -52,6 +52,13 @@ static void test_plugin() {
GPR_ASSERT(g_flag == 2);
}
static void test_repeatedly() {
for (int i=0; i<100000; i++) {
grpc_init();
grpc_shutdown();
}
}
int main(int argc, char **argv) {
grpc_test_init(argc, argv);
test(1);
@ -59,5 +66,6 @@ int main(int argc, char **argv) {
test(3);
test_mixed();
test_plugin();
test_repeatedly();
return 0;
}

Loading…
Cancel
Save