I think it might have been an oversight that this was marked
Linux-specific.
#include "test.h"
-#ifdef linux
-// required by SubprocessTest
+#ifndef _WIN32
+// SetWithLots need setrlimit.
+#include <sys/time.h>
#include <sys/resource.h>
+#include <unistd.h>
#endif
namespace {
}
}
-#ifdef linux
+#ifndef _WIN32
TEST_F(SubprocessTest, SetWithLots) {
// Arbitrary big number; needs to be over 1024 to confirm we're no longer
// hostage to pselect.
}
ASSERT_EQ(kNumProcs, subprocs_.finished_.size());
}
-#endif // linux
+#endif // _WIN32