Bug 558513 – g_warn_if_fail FIXME in gtestutils
authorChristian Dywan <cdywan@src.gnome.org>
Fri, 31 Oct 2008 09:56:19 +0000 (09:56 +0000)
committerChristian Dywan <cdywan@src.gnome.org>
Fri, 31 Oct 2008 09:56:19 +0000 (09:56 +0000)
* glib/gtestutils.c (g_test_log_send):
Turn g_assert into g_warn_if_fail as advised

svn path=/trunk/; revision=7637

ChangeLog
glib/gtestutils.c

index 55a5677..92a159d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-10-31  Christian Dywan  <christian@imendio.com>
+
+       Bug 558513 – g_warn_if_fail FIXME in gtestutils
+
+       * glib/gtestutils.c (g_test_log_send):
+       Turn g_assert into g_warn_if_fail as advised
+
 2008-10-31  Grahame Bowland  <grahame@angrygoats.net>
 
        Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name() 
index d4be2c8..895eca9 100644 (file)
@@ -140,13 +140,13 @@ g_test_log_send (guint         n_bytes,
     }
   if (test_debug_log)
     {
-      GTestLogBuffer *lbuffer = g_test_log_buffer_new();
+      GTestLogBuffer *lbuffer = g_test_log_buffer_new ();
       GTestLogMsg *msg;
       guint ui;
       g_test_log_buffer_push (lbuffer, n_bytes, buffer);
       msg = g_test_log_buffer_pop (lbuffer);
-      g_assert (msg != NULL); /* FIXME: should be g_awrn_if_fail */
-      g_assert (lbuffer->data->len == 0); /* FIXME: should be g_awrn_if_fail */
+      g_warn_if_fail (msg != NULL);
+      g_warn_if_fail (lbuffer->data->len == 0);
       g_test_log_buffer_free (lbuffer);
       /* print message */
       g_printerr ("{*LOG(%s)", g_test_log_type_name (msg->log_type));