mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-07 02:38:06 +02:00
test: fix ranged test for 'no device' tests
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
98659f04cd
commit
b9b0f368cb
1 changed files with 4 additions and 1 deletions
|
|
@ -576,7 +576,10 @@ litest_add_tcase_no_device(struct suite *suite,
|
||||||
t->name = strdup(test_name);
|
t->name = strdup(test_name);
|
||||||
t->tc = tcase_create(test_name);
|
t->tc = tcase_create(test_name);
|
||||||
list_insert(&suite->tests, &t->node);
|
list_insert(&suite->tests, &t->node);
|
||||||
tcase_add_test(t->tc, func);
|
if (range)
|
||||||
|
tcase_add_loop_test(t->tc, func, range->lower, range->upper);
|
||||||
|
else
|
||||||
|
tcase_add_test(t->tc, func);
|
||||||
suite_add_tcase(suite->suite, t->tc);
|
suite_add_tcase(suite->suite, t->tc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue