From a23567639c3b2bff340989ef0145423fe7e73cd9 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 1 Jun 2015 21:29:57 +0000
Subject: g_assert_nonnull isn't yet available in glib 2.38


diff --git a/tests/testattributes.c b/tests/testattributes.c
index 8da0dfb..b506d19 100644
--- a/tests/testattributes.c
+++ b/tests/testattributes.c
@@ -343,7 +343,7 @@ test_list_filter (void)
   g_assert_null (out);
 
   out = pango_attr_list_filter (list, just_weight, NULL);
-  g_assert_nonnull (out);
+  g_assert (out != NULL);
 
   s = g_string_new ("");
   print_attributes (attr_list_to_list (list), s);
@@ -436,11 +436,11 @@ test_iter_get (void)
   iter = pango_attr_list_get_iterator (list);
   pango_attr_iterator_next (iter);
   attr = pango_attr_iterator_get (iter, PANGO_ATTR_SIZE);
-  g_assert_nonnull (attr);
+  g_assert (attr != NULL);
   g_assert_cmpuint (attr->start_index, ==, 0);
   g_assert_cmpuint (attr->end_index, ==, G_MAXUINT);
   attr = pango_attr_iterator_get (iter, PANGO_ATTR_STRETCH);
-  g_assert_nonnull (attr);
+  g_assert (attr != NULL);
   g_assert_cmpuint (attr->start_index, ==, 10);
   g_assert_cmpuint (attr->end_index, ==, 30);
   attr = pango_attr_iterator_get (iter, PANGO_ATTR_WEIGHT);
@@ -499,7 +499,7 @@ test_iter_get_font (void)
   pango_attr_iterator_get_font (iter, desc, &lang, &attrs);
   desc2 = pango_font_description_from_string ("Times Condensed 10");
   g_assert (pango_font_description_equal (desc, desc2));
-  g_assert_nonnull (lang);
+  g_assert (lang != NULL);
   g_assert_cmpstr (pango_language_to_string (lang), ==, "ja-jp");
   g_assert_null (attrs);
   pango_font_description_free (desc);
-- 
1.8.3.4

