diff options
author | donnadionne <donnadionne2011@gmail.com> | 2015-04-16 15:23:02 -0700 |
---|---|---|
committer | donnadionne <donnadionne2011@gmail.com> | 2015-04-16 15:23:02 -0700 |
commit | 234458da828a610790f1db9741d31fa1542efce7 (patch) | |
tree | f1fa4036cecb86305148f05a2d2b93edb730ad5f | |
parent | b12dc6b5bc448d58bc726c7f36ae9eecc8e4741b (diff) | |
parent | eaccf90aef0253d59130a8f581bd6a70dae0474f (diff) |
Merge pull request #1290 from yang-g/interop
Return 1 when test_case is not supported in interop test
-rw-r--r-- | test/cpp/interop/client.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc index 189cdeb0ee..960166555b 100644 --- a/test/cpp/interop/client.cc +++ b/test/cpp/interop/client.cc @@ -86,6 +86,7 @@ int main(int argc, char** argv) { ParseCommandLineFlags(&argc, &argv, true); + int ret = 0; grpc::testing::InteropClient client( CreateChannelForTestCase(FLAGS_test_case)); if (FLAGS_test_case == "empty_unary") { @@ -132,9 +133,10 @@ int main(int argc, char** argv) { "large_unary|client_streaming|server_streaming|half_duplex|ping_pong|" "service_account_creds|compute_engine_creds|jwt_token_creds", FLAGS_test_case.c_str()); + ret = 1; } client.Reset(nullptr); grpc_shutdown(); - return 0; + return ret; } |