[gobject-introspection] tests: Print an error message



commit e59214ec184423e0a468e7b01be4a38acacf2b31
Author: Colin Walters <walters verbum org>
Date:   Tue Nov 16 09:16:52 2010 -0500

    tests: Print an error message

 tests/repository/gitestrepo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/repository/gitestrepo.c b/tests/repository/gitestrepo.c
index 25b590f..eba655f 100644
--- a/tests/repository/gitestrepo.c
+++ b/tests/repository/gitestrepo.c
@@ -54,8 +54,8 @@ main(int argc, char **argv)
   g_free (girdir);
 
   ret = g_irepository_require (repo, "Gio", NULL, 0, &error);
-  g_assert (ret);
-  g_assert (error == NULL);
+  if (!ret)
+    g_error ("%s", error->message);
 
   info = g_irepository_find_by_name (repo, "Gio", "Cancellable");
   g_assert (info != NULL);



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