1 The tests expect themselves to be executed on Linux where you have maximally
2 1024 allowable file descriptors. If executed in Solaris, the soft limit is set
3 to 256 by default which makes the test fail.
5 This patch increases the number of available file descriptors to a process.
7 This is filed as https://bugs.freedesktop.org/show_bug.cgi?id=101221
9 --- dbus-1.10.0/test/fdpass.c 2017-05-25 21:51:08.806467183 +0000
10 +++ dbus-1.10.0/test/fdpass.c 2017-05-25 21:50:46.967550466 +0000
11 @@ -813,6 +813,10 @@ main (int argc,
12 if (getrlimit (RLIMIT_NOFILE, &lim) < 0)
13 g_error ("Failed to get RLIMIT_NOFILE limit: %s", g_strerror (errno));
15 + lim.rlim_cur = 65535;
16 + lim.rlim_max = 65535;
17 + setrlimit(RLIMIT_NOFILE, &lim);
19 if (lim.rlim_cur != RLIM_INFINITY &&
20 /* only run if we have a fairly generous margin of error
21 * for stdout, stderr, duplicates, the D-Bus connection, etc. */