mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
conformance: Use g_test_verbose() for logging
Protect g_print() calls behind the g_test_verbose() check, to avoid unwanted output during the conformance test run.
This commit is contained in:
parent
96c31bbf0e
commit
70d7bad98b
@ -360,12 +360,19 @@ test_list_model_from_script (TestConformSimpleFixture *fixture,
|
||||
|
||||
name = clutter_model_get_column_name (CLUTTER_MODEL (model), 0);
|
||||
type = clutter_model_get_column_type (CLUTTER_MODEL (model), 0);
|
||||
|
||||
if (g_test_verbose ())
|
||||
g_print ("column[0]: %s, type: %s\n", name, g_type_name (type));
|
||||
|
||||
g_assert (strcmp (name, "text-column") == 0);
|
||||
g_assert (type == G_TYPE_STRING);
|
||||
|
||||
name = clutter_model_get_column_name (CLUTTER_MODEL (model), 2);
|
||||
type = clutter_model_get_column_type (CLUTTER_MODEL (model), 2);
|
||||
g_print ("type: %s\n", g_type_name (type));
|
||||
|
||||
if (g_test_verbose ())
|
||||
g_print ("column[2]: %s, type: %s\n", name, g_type_name (type));
|
||||
|
||||
g_assert (strcmp (name, "actor-column") == 0);
|
||||
g_assert (type == CLUTTER_TYPE_RECTANGLE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user