tests: Rework how slow param test is skipped

It’s more helpful to always register the test, even if it’s normally
skipped, since then the skip is recorded in the test logs so people can
see what’s ‘missing’ from them.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-02-06 11:01:46 +00:00
parent 25e68476fa
commit 5f6b1516ae

View File

@ -1397,6 +1397,13 @@ test_param_implement (void)
{
gchar *test_path;
/* This test is slow. */
if (!g_test_slow ())
{
g_test_skip ("Skipping slow /param/implement test");
return;
}
for (change_this_flag = 0; change_this_flag < 16; change_this_flag++)
for (change_this_type = 0; change_this_type < 3; change_this_type++)
for (use_this_flag = 0; use_this_flag < 16; use_this_flag++)
@ -1658,7 +1665,6 @@ main (int argc, char *argv[])
g_test_add_func ("/param/validate", test_param_validate);
g_test_add_func ("/param/convert", test_param_convert);
if (g_test_slow ())
g_test_add_func ("/param/implement", test_param_implement);
for (data.change_this_flag = 0; data.change_this_flag < 16; data.change_this_flag++)