diff --git a/test/litest-selftest.c b/test/litest-selftest.c index f4188445..75662a01 100644 --- a/test/litest-selftest.c +++ b/test/litest-selftest.c @@ -1,5 +1,7 @@ #include +#include +#include #include #include @@ -441,6 +443,7 @@ litest_assert_macros_suite(void) int main (int argc, char **argv) { + const struct rlimit corelimit = { 0, 0 }; int nfailed; Suite *s; SRunner *sr; @@ -451,6 +454,9 @@ main (int argc, char **argv) if (RUNNING_ON_VALGRIND) return 77; + if (setrlimit(RLIMIT_CORE, &corelimit) != 0) + perror("WARNING: Core dumps not disabled"); + s = litest_assert_macros_suite(); sr = srunner_create(s);