From 63a0cc3f8d97da612d445babfe367fb3d603e658 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 22 Apr 2013 13:12:12 -0400 Subject: [PATCH] tests: Fix appinfo test --- gio/tests/appinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/tests/appinfo.c b/gio/tests/appinfo.c index 6507f4b..5b10fc8 100644 --- a/gio/tests/appinfo.c +++ b/gio/tests/appinfo.c @@ -97,7 +97,7 @@ test_basic (void) appinfo = (GAppInfo*)g_desktop_app_info_new_from_filename (SRCDIR "/appinfo-test.desktop"); - g_assert (g_app_info_get_id (appinfo) == NULL); + g_assert_cmpstr (g_app_info_get_id (appinfo), ==, "appinfo-test.desktop"); g_assert_cmpstr (g_app_info_get_executable (appinfo), ==, "./appinfo-test"); icon = g_app_info_get_icon (appinfo); @@ -107,7 +107,7 @@ test_basic (void) g_object_unref (icon2); appinfo2 = g_app_info_dup (appinfo); - g_assert (g_app_info_get_id (appinfo) == g_app_info_get_id (appinfo2)); + g_assert_cmpstr (g_app_info_get_id (appinfo), ==, g_app_info_get_id (appinfo2)); g_assert_cmpstr (g_app_info_get_commandline (appinfo), ==, g_app_info_get_commandline (appinfo2)); g_object_unref (appinfo); -- 2.7.4