Fix coverage for network and network_proxy tests

PiperOrigin-RevId: 269314101
Change-Id: I65f15261a22f8f5b6250396e41d76ef40a90ef94
This commit is contained in:
Wiktor Garbacz 2019-09-16 05:42:44 -07:00 committed by Copybara-Service
parent 0aa7183502
commit 846717def1
2 changed files with 6 additions and 0 deletions

View File

@ -167,6 +167,9 @@ int main(int argc, char** argv) {
defined(THREAD_SANITIZER)
return EXIT_SUCCESS;
#endif
if (getenv("COVERAGE") != nullptr) {
return EXIT_SUCCESS;
}
gflags::ParseCommandLineFlags(&argc, &argv, true);
google::InitGoogleLogging(argv[0]);

View File

@ -107,6 +107,9 @@ int main(int argc, char** argv) {
defined(THREAD_SANITIZER)
return EXIT_SUCCESS;
#endif
if (getenv("COVERAGE") != nullptr) {
return EXIT_SUCCESS;
}
gflags::ParseCommandLineFlags(&argc, &argv, true);
google::InitGoogleLogging(argv[0]);