Deflake custom_fork_server test

PiperOrigin-RevId: 256149331
Change-Id: I68cfd64ee602757235e6c6d602819a79ae4826fb
This commit is contained in:
Kevin Hamacher 2019-07-02 05:59:05 -07:00 committed by Copybara-Service
parent 732252922a
commit 6d782dd774

View File

@ -110,6 +110,14 @@ int main(int argc, char** argv) {
gflags::ParseCommandLineFlags(&argc, &argv, true); gflags::ParseCommandLineFlags(&argc, &argv, true);
google::InitGoogleLogging(argv[0]); google::InitGoogleLogging(argv[0]);
// This test is incompatible with sanitizers.
// The `SKIP_SANITIZERS_AND_COVERAGE` macro won't work for us here since we
// need to return something.
#if defined(ADDRESS_SANITIZER) || defined(MEMORY_SANITIZER) || \
defined(THREAD_SANITIZER)
return EXIT_SUCCESS;
#endif
// Start a custom fork-server (via sandbox2::Executor). // Start a custom fork-server (via sandbox2::Executor).
const std::string path = sandbox2::GetInternalDataDependencyFilePath( const std::string path = sandbox2::GetInternalDataDependencyFilePath(
"sandbox2/examples/custom_fork/custom_fork_bin"); "sandbox2/examples/custom_fork/custom_fork_bin");