util: disable coredumps for the munit helper

Really no need for those in a test suite

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-09-28 09:52:33 +10:00
parent 631fb3c0af
commit 472f2ee84d

View file

@ -23,6 +23,8 @@
#include "config.h"
#include <sys/resource.h>
#include "util-munit.h"
#include "util-mem.h"
#include "util-strings.h"
@ -63,6 +65,10 @@ munit_tests_run(int argc, char **argv)
MUNIT_SUITE_OPTION_NONE,
};
/* Disable coredumps */
const struct rlimit corelimit = { 0, 0 };
setrlimit(RLIMIT_CORE, &corelimit);
int rc = munit_suite_main(&suite, NULL, argc, argv);
for (idx = 0; idx < count; idx++)