mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 22:50:27 +01:00
test: don't require root to list tests
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ff7c52d78d
commit
4422e95747
1 changed files with 6 additions and 9 deletions
|
|
@ -4616,23 +4616,20 @@ main(int argc, char **argv)
|
|||
if (mode == LITEST_MODE_ERROR)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
if (!run_deviceless && (rc = check_device_access()) != 0)
|
||||
return rc;
|
||||
|
||||
litest_init_test_devices();
|
||||
|
||||
list_init(&all_tests);
|
||||
|
||||
setenv("CK_DEFAULT_TIMEOUT", "30", 0);
|
||||
setenv("LIBINPUT_RUNNING_TEST_SUITE", "1", 1);
|
||||
|
||||
setup_tests();
|
||||
|
||||
if (mode == LITEST_MODE_LIST) {
|
||||
litest_list_tests(&all_tests);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
if (!run_deviceless && (rc = check_device_access()) != 0)
|
||||
return rc;
|
||||
|
||||
setenv("CK_DEFAULT_TIMEOUT", "30", 0);
|
||||
setenv("LIBINPUT_RUNNING_TEST_SUITE", "1", 1);
|
||||
|
||||
if (setrlimit(RLIMIT_CORE, &corelimit) != 0)
|
||||
perror("WARNING: Core dumps not disabled");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue