diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-07-01 23:09:52 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-07-01 23:09:52 +0000 |
commit | df91ff22c83eb726e7f20bf714655ad1ea24832d (patch) | |
tree | 0e4eb281aed18ca23e06491ea970cee2736aaeda | |
parent | f4d37b82f71ab52eec64b7dbe0c06f683e2b5eca (diff) | |
parent | 911d8d59344978ed10b6fee2c8728ce75137fbdb (diff) | |
download | pango-df91ff22c83eb726e7f20bf714655ad1ea24832d.tar.gz |
Merge branch 'tests-fixes' into 'master'
Tests fixes
See merge request GNOME/pango!353
-rw-r--r-- | tests/test-common.c | 6 | ||||
-rw-r--r-- | tests/test-font.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/test-common.c b/tests/test-common.c index a6339415..3b8880e3 100644 --- a/tests/test-common.c +++ b/tests/test-common.c @@ -225,7 +225,7 @@ attribute_from_string (const char *string) { char *s, *p; PangoAttribute *attr; - long start, end; + long long start, end; GEnumClass *class; int i; PangoColor color; @@ -234,14 +234,14 @@ attribute_from_string (const char *string) g_assert (*s == '['); s++; - start = strtol (s, &p, 10); + start = strtoll (s, &p, 10); g_assert (p > s); g_assert (*p == ','); s = p + 1; g_assert (start >= 0); - end = strtol (s, &p, 10); + end = strtoll (s, &p, 10); g_assert (p > s); g_assert (*p == ']'); s = p + 1; diff --git a/tests/test-font.c b/tests/test-font.c index 52db3027..d6ffc1a6 100644 --- a/tests/test-font.c +++ b/tests/test-font.c @@ -347,6 +347,7 @@ test_font_models (void) pango_font_face_list_sizes (PANGO_FONT_FACE (obj2), &sizes, &n_sizes); g_assert_true ((sizes == NULL) == (n_sizes == 0)); + g_free (sizes); g_object_unref (obj2); } |