mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 17:08:07 +02:00
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>
This commit is contained in:
parent
82958a31f1
commit
61553432b0
1 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <sys/resource.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <check.h>
|
#include <check.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
|
@ -441,6 +443,7 @@ litest_assert_macros_suite(void)
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
const struct rlimit corelimit = { 0, 0 };
|
||||||
int nfailed;
|
int nfailed;
|
||||||
Suite *s;
|
Suite *s;
|
||||||
SRunner *sr;
|
SRunner *sr;
|
||||||
|
|
@ -451,6 +454,9 @@ main (int argc, char **argv)
|
||||||
if (RUNNING_ON_VALGRIND)
|
if (RUNNING_ON_VALGRIND)
|
||||||
return 77;
|
return 77;
|
||||||
|
|
||||||
|
if (setrlimit(RLIMIT_CORE, &corelimit) != 0)
|
||||||
|
perror("WARNING: Core dumps not disabled");
|
||||||
|
|
||||||
s = litest_assert_macros_suite();
|
s = litest_assert_macros_suite();
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue