Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485772 - dev-util/ninja - src_test(): *** Failure in src/subprocess_test.cc:164 Expected: (rlim.rlim_cur) > (kNumProcs), actual: 1024 vs 1025 Raise [ulimit -n] well above 1025 to make this test go
Summary: dev-util/ninja - src_test(): *** Failure in src/subprocess_test.cc:164 Expec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-23 18:32 UTC by Jeroen Roovers (RETIRED)
Modified: 2013-09-23 21:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2013-09-23 18:32:38 UTC
Index: ninja-1.4.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/ninja/ninja-1.4.0.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 ninja-1.4.0.ebuild
--- ninja-1.4.0.ebuild  23 Sep 2013 03:15:30 -0000      1.1
+++ ninja-1.4.0.ebuild  23 Sep 2013 18:26:18 -0000
@@ -62,6 +62,7 @@
 }
 
 src_test() {
+       ulimit -n 2048
        ./ninja -v ninja_test || die
        ./ninja_test || die
 }

If that test fails, then we might as well raise the max number of open file descriptors just for the src_test phase.
Comment 1 Mike Gilbert gentoo-dev 2013-09-23 19:02:27 UTC
Seems ok; please go ahead.
Comment 2 Mike Gilbert gentoo-dev 2013-09-23 21:53:19 UTC
+  23 Sep 2013; Mike Gilbert <floppym@gentoo.org> ninja-1.4.0.ebuild:
+  Set the open file limit to 2048 for tests, bug 485772. Add working support for
+  cross-compilation.