diff --git a/test/cpp/codegen/golden_file_test.cc b/test/cpp/codegen/golden_file_test.cc index 8951060b94e..f6492bb9cbc 100644 --- a/test/cpp/codegen/golden_file_test.cc +++ b/test/cpp/codegen/golden_file_test.cc @@ -22,6 +22,7 @@ #include #include +#include "test/core/util/test_config.h" #include "test/cpp/util/test_config.h" // In some distros, gflags is in the namespace google, and in some others, @@ -68,6 +69,7 @@ TEST(GoldenMockFileTest, TestGeneratedMockFile) { } int main(int argc, char** argv) { + grpc::testing::TestEnvironment env(argc, argv); ::testing::InitGoogleTest(&argc, argv); grpc::testing::InitTest(&argc, &argv, true); if (FLAGS_generated_file_path.empty()) { diff --git a/test/cpp/codegen/proto_utils_test.cc b/test/cpp/codegen/proto_utils_test.cc index e9dcea0fd9c..1013ccef10b 100644 --- a/test/cpp/codegen/proto_utils_test.cc +++ b/test/cpp/codegen/proto_utils_test.cc @@ -23,6 +23,8 @@ #include #include +#include "test/core/util/test_config.h" + namespace grpc { namespace internal { @@ -187,6 +189,7 @@ TEST_F(WriterTest, LargeBlockLargeBackup) { } // namespace grpc int main(int argc, char** argv) { + grpc::testing::TestEnvironment env(argc, argv); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc index c573e07072c..fad7fddac97 100644 --- a/test/cpp/qps/qps_json_driver.cc +++ b/test/cpp/qps/qps_json_driver.cc @@ -26,6 +26,7 @@ #include #include +#include "test/core/util/test_config.h" #include "test/cpp/qps/benchmark_config.h" #include "test/cpp/qps/driver.h" #include "test/cpp/qps/parse_json.h" @@ -290,6 +291,7 @@ static bool QpsDriver() { } // namespace grpc int main(int argc, char** argv) { + grpc::testing::TestEnvironment env(argc, argv); grpc::testing::InitTest(&argc, &argv, true); bool ok = grpc::testing::QpsDriver(); diff --git a/test/cpp/qps/worker.cc b/test/cpp/qps/worker.cc index 4413f7db0f4..c88b60e2f10 100644 --- a/test/cpp/qps/worker.cc +++ b/test/cpp/qps/worker.cc @@ -26,6 +26,7 @@ #include #include +#include "test/core/util/test_config.h" #include "test/cpp/qps/qps_worker.h" #include "test/cpp/util/test_config.h" #include "test/cpp/util/test_credentials_provider.h" @@ -57,6 +58,7 @@ static void RunServer() { } // namespace grpc int main(int argc, char** argv) { + grpc::testing::TestEnvironment env(argc, argv); grpc::testing::InitTest(&argc, &argv, true); signal(SIGINT, sigint_handler);