100% repeatability?

Peter Holm peter at holm.cc
Thu Feb 27 08:18:09 UTC 2014


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


More information about the freebsd-testing mailing list