diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-07-28 18:17:08 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-07-28 18:17:16 (GMT) |
commit | db7066551ae75c0a304dd8cd365cf811ac345a53 (patch) | |
tree | 3b5d5114821596675103f4e0243db136fe70b0af /src/subprocess_test.cc | |
parent | 0b4d514d2d86466742f36e9a304cb6c376ffe1c0 (diff) | |
download | Ninja-db7066551ae75c0a304dd8cd365cf811ac345a53.zip Ninja-db7066551ae75c0a304dd8cd365cf811ac345a53.tar.gz Ninja-db7066551ae75c0a304dd8cd365cf811ac345a53.tar.bz2 |
Disable SubprocessTest.TestWithLots on OS X.
It fails on OS X, see issue #384.
Diffstat (limited to 'src/subprocess_test.cc')
-rw-r--r-- | src/subprocess_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/subprocess_test.cc b/src/subprocess_test.cc index 7dbaf97..d89525e 100644 --- a/src/subprocess_test.cc +++ b/src/subprocess_test.cc @@ -149,7 +149,9 @@ TEST_F(SubprocessTest, SetWithMulti) { } } -#ifndef _WIN32 +// OS X's process limit is less than 1025 by default +// (|sysctl kern.maxprocperuid| is 709 on 10.7 and 10.8 and less prior to that). +#ifdef linux TEST_F(SubprocessTest, SetWithLots) { // Arbitrary big number; needs to be over 1024 to confirm we're no longer // hostage to pselect. @@ -176,4 +178,4 @@ TEST_F(SubprocessTest, SetWithLots) { } ASSERT_EQ(kNumProcs, subprocs_.finished_.size()); } -#endif // _WIN32 +#endif // linux |