mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 09:10:40 +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
2346801b0e
commit
8c2ed7adbf
1 changed files with 3 additions and 2 deletions
|
|
@ -408,10 +408,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)
|
||||
|
|
@ -475,7 +476,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