diff options
author | 2015-02-17 11:41:46 -0800 | |
---|---|---|
committer | 2015-02-17 11:41:46 -0800 | |
commit | 2d9c51242af126cca8238c4f2b6f0e8b13a25c25 (patch) | |
tree | 597b8fe8262a299500bc3bd48fa909931b32f280 /test/core | |
parent | 35108f65279cb46c2948dd5c8a57867f3206620d (diff) |
Add mixed shutdown/init test
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/surface/multi_init_test.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/core/surface/multi_init_test.c b/test/core/surface/multi_init_test.c index 3607c42453..dced882574 100644 --- a/test/core/surface/multi_init_test.c +++ b/test/core/surface/multi_init_test.c @@ -44,10 +44,20 @@ static void test(int rounds) { } } +static void test_mixed() { + grpc_init(); + grpc_init(); + grpc_shutdown(); + grpc_init(); + grpc_shutdown(); + grpc_shutdown(); +} + int main(int argc, char **argv) { grpc_test_init(argc, argv); test(1); test(2); test(3); + test_mixed(); return 0; } |