mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Consistently exclude examples from coverage runs
PiperOrigin-RevId: 514443652 Change-Id: Ia020371928e94d8b9bd98a9318c5d884f96c9f86
This commit is contained in:
parent
17553b2206
commit
9f657e6a62
|
@ -172,9 +172,6 @@ int main(int argc, char* argv[]) {
|
||||||
if constexpr (sapi::sanitizers::IsAny()) {
|
if constexpr (sapi::sanitizers::IsAny()) {
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
if (getenv("COVERAGE") != nullptr) {
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
|
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
|
||||||
absl::ParseCommandLine(argc, argv);
|
absl::ParseCommandLine(argc, argv);
|
||||||
|
|
|
@ -19,6 +19,8 @@ die() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[ -n "$COVERAGE" ]] && exit 0
|
||||||
|
|
||||||
# Find input files
|
# Find input files
|
||||||
BINDIR=$TEST_SRCDIR/com_google_sandboxed_api/sandboxed_api/sandbox2
|
BINDIR=$TEST_SRCDIR/com_google_sandboxed_api/sandboxed_api/sandbox2
|
||||||
EXE=$BINDIR/examples/network/network_sandbox
|
EXE=$BINDIR/examples/network/network_sandbox
|
||||||
|
|
|
@ -122,9 +122,6 @@ int main(int argc, char* argv[]) {
|
||||||
if constexpr (sapi::sanitizers::IsAny()) {
|
if constexpr (sapi::sanitizers::IsAny()) {
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
if (getenv("COVERAGE") != nullptr) {
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
|
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
|
||||||
absl::ParseCommandLine(argc, argv);
|
absl::ParseCommandLine(argc, argv);
|
||||||
|
|
|
@ -19,6 +19,8 @@ die() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[ -n "$COVERAGE" ]] && exit 0
|
||||||
|
|
||||||
# Find input files
|
# Find input files
|
||||||
BINDIR=$TEST_SRCDIR/com_google_sandboxed_api/sandboxed_api/sandbox2
|
BINDIR=$TEST_SRCDIR/com_google_sandboxed_api/sandboxed_api/sandbox2
|
||||||
EXE=$BINDIR/examples/network_proxy/networkproxy_sandbox
|
EXE=$BINDIR/examples/network_proxy/networkproxy_sandbox
|
||||||
|
|
Loading…
Reference in New Issue
Block a user