Commit 70d7bad9 authored by Emmanuele Bassi's avatar Emmanuele Bassi

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.
parent 96c31bbf
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment