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:
Emmanuele Bassi 2010-02-25 23:15:59 +00:00
parent 96c31bbf0e
commit 70d7bad98b

View File

@ -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);
}