mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 18:40:05 +01:00
test: fix no-device test name handling
All these tests were stored with "no device" as test name. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5516e9ea74
commit
76e138f512
1 changed files with 3 additions and 2 deletions
|
|
@ -547,10 +547,11 @@ litest_add_tcase_for_device(struct suite *suite,
|
|||
static void
|
||||
litest_add_tcase_no_device(struct suite *suite,
|
||||
void *func,
|
||||
const char *funcname,
|
||||
const struct range *range)
|
||||
{
|
||||
struct test *t;
|
||||
const char *test_name = "no device";
|
||||
const char *test_name = funcname;
|
||||
|
||||
if (filter_device &&
|
||||
fnmatch(filter_device, test_name, 0) != 0)
|
||||
|
|
@ -614,7 +615,7 @@ litest_add_tcase(const char *suite_name,
|
|||
|
||||
if (required == LITEST_DISABLE_DEVICE &&
|
||||
excluded == LITEST_DISABLE_DEVICE) {
|
||||
litest_add_tcase_no_device(suite, func, range);
|
||||
litest_add_tcase_no_device(suite, func, funcname, range);
|
||||
added = true;
|
||||
} else if (required != LITEST_ANY || excluded != LITEST_ANY) {
|
||||
for (; *dev; dev++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue