Merge pull request #23700 from veblush/msan-fix3

Add TestEnvironment to tests
reviewable/pr19545/r2
Esun Kim 4 years ago committed by GitHub
commit f83a4ee3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/cpp/qps/inproc_sync_unary_ping_pong_test.cc
  2. 2
      test/cpp/qps/qps_interarrival_test.cc
  3. 1
      test/cpp/qps/qps_openloop_test.cc

@ -20,6 +20,7 @@
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include "test/core/util/test_config.h"
#include "test/cpp/qps/benchmark_config.h" #include "test/cpp/qps/benchmark_config.h"
#include "test/cpp/qps/driver.h" #include "test/cpp/qps/driver.h"
#include "test/cpp/qps/report.h" #include "test/cpp/qps/report.h"
@ -58,6 +59,7 @@ static void RunSynchronousUnaryPingPong() {
} // namespace grpc } // namespace grpc
int main(int argc, char** argv) { int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
grpc::testing::InitTest(&argc, &argv, true); grpc::testing::InitTest(&argc, &argv, true);
grpc::testing::RunSynchronousUnaryPingPong(); grpc::testing::RunSynchronousUnaryPingPong();

@ -22,6 +22,7 @@
// Use the C histogram rather than C++ to avoid depending on proto // Use the C histogram rather than C++ to avoid depending on proto
#include "test/core/util/histogram.h" #include "test/core/util/histogram.h"
#include "test/core/util/test_config.h"
#include "test/cpp/qps/interarrival.h" #include "test/cpp/qps/interarrival.h"
#include "test/cpp/util/test_config.h" #include "test/cpp/util/test_config.h"
@ -52,6 +53,7 @@ static void RunTest(RandomDistInterface&& r, int threads,
using grpc::testing::ExpDist; using grpc::testing::ExpDist;
int main(int argc, char** argv) { int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
grpc::testing::InitTest(&argc, &argv, true); grpc::testing::InitTest(&argc, &argv, true);
RunTest(ExpDist(10.0), 5, std::string("Exponential(10)")); RunTest(ExpDist(10.0), 5, std::string("Exponential(10)"));

@ -62,6 +62,7 @@ static void RunQPS() {
} // namespace grpc } // namespace grpc
int main(int argc, char** argv) { int main(int argc, char** argv) {
grpc::testing::TestEnvironment env(argc, argv);
grpc::testing::InitTest(&argc, &argv, true); grpc::testing::InitTest(&argc, &argv, true);
grpc::testing::RunQPS(); grpc::testing::RunQPS();

Loading…
Cancel
Save