MCPcopy Create free account
hub / github.com/apache/brpc / main

Function main

test/brpc_rdma_unittest.cpp:2005–2019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2003#endif // if BRPC_WITH_RDMA
2004
2005int main(int argc, char* argv[]) {
2006 testing::InitGoogleTest(&argc, argv);
2007 GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true);
2008#if BRPC_WITH_RDMA
2009 rdma::FLAGS_rdma_trace_verbose = true;
2010 rdma::FLAGS_rdma_memory_pool_max_regions = 2;
2011 FLAGS_log_idle_connection_close = true;
2012 if (!FLAGS_rdma_test_enable) {
2013 // skip UT requiring rdma runtime environment
2014 rdma::g_rdma_available.store(true, butil::memory_order_relaxed);
2015 rdma::g_skip_rdma_init = true;
2016 }
2017#endif // if BRPC_WITH_RDMA
2018 return RUN_ALL_TESTS();
2019}

Callers

nothing calls this directly

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected