Date: Thu, 27 Feb 2014 09:17:59 +0100 From: Peter Holm <peter@holm.cc> To: freebsd-testing@freebsd.org Subject: 100% repeatability? Message-ID: <20140227081759.GA29517@x2.osted.lan>
next in thread | raw e-mail | index | archive | help
I looked at creating a test scenario for the following piece of code from src/sys/kern/kern_fork.c: 881 if ((nprocs >= maxproc - 10 && priv_check_cred(td->td_ucred, 882 PRIV_MAXPROC, 0) != 0) || nprocs >= maxproc) { 883 error = EAGAIN; 884 goto fail; 885 } I came up with a test scenario for this: http://people.freebsd.org/~pho/kern_fork_test.c But it is not 100% repeatable, as I would expect many other kernel tests will be. The test case runs as expected, until for example root decides to do a parallel buildworld. Is this a show stopper? -- Peter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140227081759.GA29517>