opnsense-src/usr.bin/limits
Mark Johnston 0f63c4af5e limits tests: Try to fix spurious cputime test failures
I very occasionally see test failures caused by the total CPU time being
several milliseconds under 3s.  The test runs "limits -t 3 time <busy
loop>" and verifies that the reported time elapsed is at least 3s (and
not too much more).  In particular, any time spent executing time(1)
itself is counted against the limit but not recorded in the output.

I think it makes more sense to reverse the order, so that the CPU time
limit is not applied to time(1) itself.  This also resolves the test
failures I was seeing, which were reproducible only under load (i.e.,
running many tests in parallel).

MFC after:	2 weeks
Sponsored by:	Klara, Inc.
2025-02-14 16:26:19 +00:00
..
tests limits tests: Try to fix spurious cputime test failures 2025-02-14 16:26:19 +00:00
limits.1 usr.bin/limits: support RLIMIT_PIPEBUF 2024-09-20 09:46:07 +03:00
limits.c usr.bin/limits: support RLIMIT_PIPEBUF 2024-09-20 09:46:07 +03:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00