Consistently exclude examples from coverage runs

PiperOrigin-RevId: 514443652
Change-Id: Ia020371928e94d8b9bd98a9318c5d884f96c9f86
This commit is contained in:
Wiktor Garbacz 2023-03-06 10:02:28 -08:00 committed by Copybara-Service
parent 17553b2206
commit 9f657e6a62
4 changed files with 4 additions and 6 deletions

View File

@ -172,9 +172,6 @@ int main(int argc, char* argv[]) {
if constexpr (sapi::sanitizers::IsAny()) {
return EXIT_SUCCESS;
}
if (getenv("COVERAGE") != nullptr) {
return EXIT_SUCCESS;
}
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
absl::ParseCommandLine(argc, argv);

View File

@ -19,6 +19,8 @@ die() {
exit 1
}
[[ -n "$COVERAGE" ]] && exit 0
# Find input files
BINDIR=$TEST_SRCDIR/com_google_sandboxed_api/sandboxed_api/sandbox2
EXE=$BINDIR/examples/network/network_sandbox

View File

@ -122,9 +122,6 @@ int main(int argc, char* argv[]) {
if constexpr (sapi::sanitizers::IsAny()) {
return EXIT_SUCCESS;
}
if (getenv("COVERAGE") != nullptr) {
return EXIT_SUCCESS;
}
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
absl::ParseCommandLine(argc, argv);

View File

@ -19,6 +19,8 @@ die() {
exit 1
}
[[ -n "$COVERAGE" ]] && exit 0
# Find input files
BINDIR=$TEST_SRCDIR/com_google_sandboxed_api/sandboxed_api/sandbox2
EXE=$BINDIR/examples/network_proxy/networkproxy_sandbox