diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-06-30 14:07:11 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-06-30 14:07:11 -0400 |
commit | b3ae4cdfe4cf0f64c552644414b2a8fbc6c624e2 (patch) | |
tree | aa44f9dfeab61f16f7e60b8c51c900d011b90c51 /tests/test-font.c | |
parent | 61763238b548d717d0772f31467ad7e9b6a557ae (diff) | |
download | pango-b3ae4cdfe4cf0f64c552644414b2a8fbc6c624e2.tar.gz |
tests: Be more careful about font formatsbitmap-font-tests
It turns out that we can still see non-scalable fonts
which report a list of sizes. Take that into account.
Fixes: #570
Diffstat (limited to 'tests/test-font.c')
-rw-r--r-- | tests/test-font.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test-font.c b/tests/test-font.c index e2147485..52db3027 100644 --- a/tests/test-font.c +++ b/tests/test-font.c @@ -346,9 +346,7 @@ test_font_models (void) g_assert_true (pango_font_face_get_family (PANGO_FONT_FACE (obj2)) == (PangoFontFamily *)obj); pango_font_face_list_sizes (PANGO_FONT_FACE (obj2), &sizes, &n_sizes); - /* no more bitmap fonts */ - g_assert_null (sizes); - g_assert_cmpint (n_sizes, ==, 0); + g_assert_true ((sizes == NULL) == (n_sizes == 0)); g_object_unref (obj2); } |