diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-06-26 15:44:16 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-06-26 21:07:21 +1000 |
commit | 61553432b0c66515bb8bfd4aee2c70896aa7a6ae (patch) | |
tree | 91293d3ec8a0d1042f9bc0276deb45de9d575f71 | |
parent | 82958a31f1dccdf0ffb02d1719912d5d8d43188b (diff) | |
download | libinput-61553432b0c66515bb8bfd4aee2c70896aa7a6ae.tar.gz |
test: disable coredumps for the selftest
Because on my XPS coredumps take away all the CPU, leading to a test timeout.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | test/litest-selftest.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <config.h> +#include <sys/resource.h> +#include <sys/time.h> #include <check.h> #include <signal.h> @@ -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); |