#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysinfo.h>
#include <libudev.h>
#if HAVE_LIBSYSTEMD
#include <systemd/sd-bus.h>
#define UDEV_DEVICE_GROUPS_FILE UDEV_RULES_D \
"/80-libinput-device-groups-litest-XXXXXX.rules"
-static int jobs = 8;
+static int jobs;
static bool in_debugger = false;
static bool verbose = false;
static bool run_deviceless = false;
if (in_debugger || RUNNING_ON_VALGRIND)
setenv("CK_FORK", "no", 0);
+ jobs = get_nprocs() * 2;
+
mode = litest_parse_argv(argc, argv);
if (mode == LITEST_MODE_ERROR)
return EXIT_FAILURE;