mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 09:20:07 +01:00
test: fix test listing
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8c2ed7adbf
commit
ad5df72d57
1 changed files with 8 additions and 1 deletions
|
|
@ -3515,12 +3515,19 @@ static void
|
|||
litest_list_tests(struct list *tests)
|
||||
{
|
||||
struct suite *s;
|
||||
const char *last_test_name = NULL;
|
||||
|
||||
list_for_each(s, tests, node) {
|
||||
struct test *t;
|
||||
printf("%s:\n", s->name);
|
||||
list_for_each(t, &s->tests, node) {
|
||||
printf(" %s\n", t->name);
|
||||
if (!last_test_name ||
|
||||
!streq(last_test_name, t->name))
|
||||
printf(" %s:\n", t->name);
|
||||
|
||||
last_test_name = t->name;
|
||||
|
||||
printf(" %s\n", t->devname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue