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

svn path=/trunk/; revision=7637
This commit is contained in:
Christian Dywan 2008-10-31 09:56:19 +00:00
parent df719f749c
commit 215c04ce6c
2 changed files with 10 additions and 3 deletions

View File

@ -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()

View 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));