glib r7637 - in trunk: . glib



Author: cdywan
Date: Fri Oct 31 09:56:19 2008
New Revision: 7637
URL: http://svn.gnome.org/viewvc/glib?rev=7637&view=rev

Log:
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

Modified:
   trunk/ChangeLog
   trunk/glib/gtestutils.c

Modified: trunk/glib/gtestutils.c
==============================================================================
--- trunk/glib/gtestutils.c	(original)
+++ trunk/glib/gtestutils.c	Fri Oct 31 09:56:19 2008
@@ -140,13 +140,13 @@
     }
   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));



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