interop_server_bootstrap.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #include <signal.h>
20 
24 
26 
27 static void sigint_handler(int /*x*/) {
29 }
30 
31 int main(int argc, char** argv) {
33  grpc::testing::InitTest(&argc, &argv, true);
34  signal(SIGINT, sigint_handler);
35 
38 
39  return 0;
40 }
grpc::testing::InitTest
void InitTest(int *argc, char ***argv, bool remove_flags)
Definition: test_config_cc.cc:28
gpr_atm_no_barrier_store
#define gpr_atm_no_barrier_store(p, value)
Definition: impl/codegen/atm_gcc_atomic.h:56
generate.env
env
Definition: generate.py:37
server_helper.h
grpc::testing::interop::g_got_sigint
gpr_atm g_got_sigint
Definition: interop_server_bootstrap.cc:25
signal
static void signal(notification *n)
Definition: alts_tsi_handshaker_test.cc:107
grpc::testing::interop::RunServer
void RunServer(const std::shared_ptr< ServerCredentials > &creds)
Definition: interop_server.cc:320
test_config.h
gpr_atm
intptr_t gpr_atm
Definition: impl/codegen/atm_gcc_atomic.h:32
grpc::testing::CreateInteropServerCredentials
std::shared_ptr< ServerCredentials > CreateInteropServerCredentials()
Definition: server_helper.cc:39
grpc::testing::TestEnvironment
Definition: test/core/util/test_config.h:54
test_config.h
main
int main(int argc, char **argv)
Definition: interop_server_bootstrap.cc:31
sigint_handler
static void sigint_handler(int)
Definition: interop_server_bootstrap.cc:27


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:22