grpc::testing::TestEnvironment env(argc, argv);
grpc::testing::InitTest(&argc, &argv, true);
grpc_init();
- GPR_ASSERT(!FLAGS_test_bin_name.empty());
+ GPR_ASSERT(FLAGS_test_bin_name != "");
std::string my_bin = argv[0];
if (FLAGS_running_under_bazel) {
- GPR_ASSERT(!FLAGS_grpc_test_directory_relative_to_test_srcdir.empty());
+ GPR_ASSERT(FLAGS_grpc_test_directory_relative_to_test_srcdir != "");
// Use bazel's TEST_SRCDIR environment variable to locate the "test data"
// binaries.
char* test_srcdir = gpr_getenv("TEST_SRCDIR");