diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-01-23 12:19:53 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-01-23 12:36:45 -0500 |
commit | fcda7d6f9b6ee966f5da860be5ec0c0096193a83 (patch) | |
tree | 88b046dc0a959014dc6902ffc57fd9596cfd0e65 | |
parent | a5161c21da9a7be278827c90c339529f87a9be8f (diff) | |
download | pango-fcda7d6f9b6ee966f5da860be5ec0c0096193a83.tar.gz |
tests: Don't assert too muchfont-face-fixes
We can't guarantee uniqueness of face names, so we
don't know that getting a face by name will return
the same face we got the name from (which is true if
faces are unique). So, just assert that we get a
face with the same name.
Fixes: #494
-rw-r--r-- | tests/test-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-font.c b/tests/test-font.c index d02c7932..58a5bf8c 100644 --- a/tests/test-font.c +++ b/tests/test-font.c @@ -220,7 +220,7 @@ test_enumerate (void) for (i = 0; i < n_faces; i++) { face = pango_font_family_get_face (families[0], pango_font_face_get_face_name (faces[i])); - g_assert_true (face == faces[i]); + g_assert_cmpstr (pango_font_face_get_face_name (face), ==, pango_font_face_get_face_name (faces[i])); } desc = pango_font_description_new (); |