tests/test-runner: Assorted style cleanup

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl 2021-03-02 16:53:18 +01:00
parent e09de6787f
commit 03242a4e2a

View File

@ -1027,7 +1027,8 @@ run_test (const char *filename,
return success; return success;
} }
typedef struct { typedef struct
{
int n_tests; int n_tests;
char **tests; char **tests;
} RunTestsInfo; } RunTestsInfo;
@ -1042,8 +1043,10 @@ run_tests (gpointer data)
g_print ("1..%d\n", info->n_tests); g_print ("1..%d\n", info->n_tests);
for (i = 0; i < info->n_tests; i++) for (i = 0; i < info->n_tests; i++)
{
if (!run_test (info->tests[i], i + 1)) if (!run_test (info->tests[i], i + 1))
success = FALSE; success = FALSE;
}
meta_quit (success ? 0 : 1); meta_quit (success ? 0 : 1);