From: Behdad Esfahbod Date: Mon, 2 May 2011 16:06:18 +0000 (-0400) Subject: [test/unicode] Add log messages X-Git-Tag: 2.0_alpha~7^2~289 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8e29c725a72c2e991cd1c4422a020457e1684e9;p=apps%2Fhome%2Fvideo-player.git [test/unicode] Add log messages Use with --verbose to see what's failing --- diff --git a/test/test-unicode.c b/test/test-unicode.c index fc506c7..4b2585b 100644 --- a/test/test-unicode.c +++ b/test/test-unicode.c @@ -426,9 +426,12 @@ test_unicode_properties (gconstpointer user_data) const property_t *p = &properties[i]; const test_pair_t *tests; + g_test_message ("Testing property %s", p->name); tests = p->tests; - for (j = 0; j < p->num_tests; j++) - g_assert_cmpint (p->getter (uf, tests[j].unicode), ==, tests[j].value); + for (j = 0; j < p->num_tests; j++) { + g_test_message ("Test %s #%d: U+%04X", p->name, j, tests[j].unicode); + g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, tests[j].value); + } } } @@ -452,7 +455,7 @@ test_unicode_properties_nil (void) tests = p->tests; for (j = 0; j < p->num_tests; j++) - g_assert_cmpint (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].unicode)); + g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].unicode)); } hb_unicode_funcs_destroy (uf);