mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-10 19:40:23 +01:00
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:
parent
631fb3c0af
commit
472f2ee84d
1 changed files with 6 additions and 0 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue