Skip to content
Snippets Groups Projects
Commit a7e5a0bd authored by Craig Tiller's avatar Craig Tiller
Browse files

Add a test of repeatedly calling grpc_init then grpc_shutdown

parent 22d95164
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,13 @@ static void test_plugin() { ...@@ -52,6 +52,13 @@ static void test_plugin() {
GPR_ASSERT(g_flag == 2); 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) { int main(int argc, char **argv) {
grpc_test_init(argc, argv); grpc_test_init(argc, argv);
test(1); test(1);
...@@ -59,5 +66,6 @@ int main(int argc, char **argv) { ...@@ -59,5 +66,6 @@ int main(int argc, char **argv) {
test(3); test(3);
test_mixed(); test_mixed();
test_plugin(); test_plugin();
test_repeatedly();
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment