[glib] Make gio/tests/g-icon pass again



commit 69129e806532796e44522775656c7800c389e5f8
Author: Dan Winship <danw gnome org>
Date:   Sat Nov 27 16:56:44 2010 -0500

    Make gio/tests/g-icon pass again
    
    It got broken in two different ways by the g_str_hash() change
    (354d655b)

 gio/tests/g-icon.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/tests/g-icon.c b/gio/tests/g-icon.c
index 2bf63b7..52465c8 100644
--- a/gio/tests/g-icon.c
+++ b/gio/tests/g-icon.c
@@ -258,7 +258,7 @@ test_themed_icon (void)
   g_assert_cmpstr (names[0], ==, "first");
   g_assert_cmpstr (names[1], ==, "testicon");
   g_assert_cmpstr (names[2], ==, "last");
-  g_assert_cmpuint (g_icon_hash (icon1), ==, 3193088045U);
+  g_assert_cmpuint (g_icon_hash (icon1), ==, 2400773466U);
 
   icon2 = g_themed_icon_new_from_names ((gchar**)names2, -1);
   g_assert (g_icon_equal (icon1, icon2));
@@ -299,11 +299,11 @@ test_emblemed_icon (void)
 
   emblem = emblems->data;
   g_assert (g_emblem_get_icon (emblem) == icon2);
-  g_assert (g_emblem_get_origin (emblem) == G_EMBLEM_ORIGIN_UNKNOWN);
+  g_assert (g_emblem_get_origin (emblem) == G_EMBLEM_ORIGIN_TAG);
 
   emblem = emblems->next->data;
   g_assert (g_emblem_get_icon (emblem) == icon2);
-  g_assert (g_emblem_get_origin (emblem) == G_EMBLEM_ORIGIN_TAG);
+  g_assert (g_emblem_get_origin (emblem) == G_EMBLEM_ORIGIN_UNKNOWN);
 
   g_object_unref (icon1);
   g_object_unref (icon2);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]