[pango/macos-tests] xxx: Debug spew for failing test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/macos-tests] xxx: Debug spew for failing test
- Date: Mon, 4 Jan 2021 03:02:44 +0000 (UTC)
commit 4c59882f8baa05c187724c22832773844bffa8a7
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 3 21:42:21 2021 -0500
xxx: Debug spew for failing test
tests/test-font.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/tests/test-font.c b/tests/test-font.c
index 486504f9..8500871d 100644
--- a/tests/test-font.c
+++ b/tests/test-font.c
@@ -225,7 +225,11 @@ test_enumerate (void)
pango_font_description_set_size (desc, 10*PANGO_SCALE);
font = pango_font_map_load_font (fontmap, context, desc);
+ g_assert_true (font != NULL);
+
face = pango_font_get_face (font);
+ g_assert_true (face != NULL);
+
found_face = FALSE;
for (i = 0; i < n_faces; i++)
{
@@ -235,6 +239,12 @@ test_enumerate (void)
break;
}
}
+ if (!found_face)
+ {
+ g_warning ("Family: %s", pango_font_family_get_name (families[0]));
+ g_warning ("%d faces" n_faces);
+ g_warning ("default face: %s", pango_font_face_get_face_name (face));
+ }
g_assert_true (found_face);
g_object_unref (font);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]