mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
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:
parent
25e68476fa
commit
5f6b1516ae
@ -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,8 +1665,7 @@ 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);
|
||||
g_test_add_func ("/param/implement", test_param_implement);
|
||||
|
||||
for (data.change_this_flag = 0; data.change_this_flag < 16; data.change_this_flag++)
|
||||
for (data.change_this_type = 0; data.change_this_type < 3; data.change_this_type++)
|
||||
|
Loading…
Reference in New Issue
Block a user