openafs/tests/opr
Andrew Deason 1acc612687 tests: Avoid generating cores in softsig-helper
Our opr/softsig-t tests run softsig-helper to generate SIGSEGV and
SIGBUS signals (among other things), which may generate core files (if
'ulimit -c' is nonzero). The core files are useless, since we expect
those signals to be generated.

Usually the core files are generated in the build tree (where we run the
tests from), which is a minor annoyance. But some systems may be
configured to store core files in a central location (e.g.
/var/lib/systemd/coredump), which starts to build up over time after
many builds.

To avoid this, prevent core files from being generated in softsig-helper
for the SIGSEGV and SIGBUS cases by calling setrlimit().

Change-Id: Ice71e79009cf2b44d4cbe32233d3a7ee12e08d2d
Reviewed-on: https://gerrit.openafs.org/15795
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
2024-08-13 13:02:38 -04:00
..
.gitignore tests: Add cache-t to .gitignore in tests/opr 2020-03-20 15:56:54 -04:00
cache-t.c opr: Allow non-2^x for n_buckets in opr_cache_init 2020-04-10 09:55:35 -04:00
dict-t.c opr: Add dictionary implementation 2012-11-01 12:18:01 -07:00
fmt-t.c tests: Fix fmt-t.c warning 2014-11-05 08:39:25 -05:00
jhash-t.c opr: Make opr_jhash_opaque consistent with opr_jhash 2016-12-22 15:59:31 -05:00
Makefile.in tests: Add missing dependencies for the C-TAP tests 2024-06-24 15:12:11 -04:00
queues-t.c opr: Don't confuse isLast and isEnd 2012-11-23 06:18:31 -08:00
rbtree-t.c
softsig-helper.c tests: Avoid generating cores in softsig-helper 2024-08-13 13:02:38 -04:00
softsig-t tests: Introduce afstest.pm 2021-10-03 17:55:18 -04:00
time-t.c tests/opr/time-t.c: Use labs instead of abs for long argument 2015-08-01 23:05:26 -04:00
uuid-t.c Make opr_uuid_toString return a status 2013-06-21 11:17:48 -07:00