mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
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:
parent
df719f749c
commit
215c04ce6c
@ -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>
|
2008-10-31 Grahame Bowland <grahame@angrygoats.net>
|
||||||
|
|
||||||
Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name()
|
Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name()
|
||||||
|
@ -140,13 +140,13 @@ g_test_log_send (guint n_bytes,
|
|||||||
}
|
}
|
||||||
if (test_debug_log)
|
if (test_debug_log)
|
||||||
{
|
{
|
||||||
GTestLogBuffer *lbuffer = g_test_log_buffer_new();
|
GTestLogBuffer *lbuffer = g_test_log_buffer_new ();
|
||||||
GTestLogMsg *msg;
|
GTestLogMsg *msg;
|
||||||
guint ui;
|
guint ui;
|
||||||
g_test_log_buffer_push (lbuffer, n_bytes, buffer);
|
g_test_log_buffer_push (lbuffer, n_bytes, buffer);
|
||||||
msg = g_test_log_buffer_pop (lbuffer);
|
msg = g_test_log_buffer_pop (lbuffer);
|
||||||
g_assert (msg != NULL); /* FIXME: should be g_awrn_if_fail */
|
g_warn_if_fail (msg != NULL);
|
||||||
g_assert (lbuffer->data->len == 0); /* FIXME: should be g_awrn_if_fail */
|
g_warn_if_fail (lbuffer->data->len == 0);
|
||||||
g_test_log_buffer_free (lbuffer);
|
g_test_log_buffer_free (lbuffer);
|
||||||
/* print message */
|
/* print message */
|
||||||
g_printerr ("{*LOG(%s)", g_test_log_type_name (msg->log_type));
|
g_printerr ("{*LOG(%s)", g_test_log_type_name (msg->log_type));
|
||||||
|
Loading…
Reference in New Issue
Block a user