diff options
Diffstat (limited to 'src/subprocess_test.cc')
-rw-r--r-- | src/subprocess_test.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/subprocess_test.cc b/src/subprocess_test.cc index 0c10250..7dbaf97 100644 --- a/src/subprocess_test.cc +++ b/src/subprocess_test.cc @@ -16,9 +16,11 @@ #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 { @@ -147,7 +149,7 @@ TEST_F(SubprocessTest, SetWithMulti) { } } -#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. @@ -174,4 +176,4 @@ TEST_F(SubprocessTest, SetWithLots) { } ASSERT_EQ(kNumProcs, subprocs_.finished_.size()); } -#endif // linux +#endif // _WIN32 |