From b67ab51f76389247c9012cee7f3f14fc3ad2afc7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 17 Oct 2024 11:45:22 +1000 Subject: [PATCH] test: append, not insert the suites list_append() came later than list_insert() and there's an argument to be made that tests added later should be run first since they're less likely to succeed. But it's a lot harder to read test logs when they are in reverse order, and with the TEST_COLLECTION() macro the order of the test suite is not obvious anyway. Part-of: --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index eb4d983f..67d8157c 100644 --- a/test/litest.c +++ b/test/litest.c @@ -4855,7 +4855,7 @@ setup_tests(void) s->name = safe_strdup(c->name); list_init(&s->tests); - list_insert(&all_test_suites, &s->node); + list_append(&all_test_suites, &s->node); current_suite = s; c->setup(); -- 2.34.1