test: skip double-initialization of all_tests lists
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Jul 2017 23:34:16 +0000 (09:34 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Jul 2017 23:58:45 +0000 (09:58 +1000)
Already done in main(), this here is a leftover from having multiple mains fro
different tests.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c

index 9e874050bbe7d794582dd3ab1ec88015a21204c3..abd72188c9ce1fac7a11c846e7fca6cf744f0d30 100644 (file)
@@ -567,9 +567,6 @@ get_suite(const char *name)
 {
        struct suite *s;
 
-       if (all_tests.next == NULL && all_tests.prev == NULL)
-               list_init(&all_tests);
-
        list_for_each(s, &all_tests, node) {
                if (streq(s->name, name))
                        return s;