http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html
author15:08:59 Tim Janik <timj@imendio.com>
Mon, 10 Dec 2007 14:07:42 +0000 (14:07 +0000)
committerTim Janik <timj@src.gnome.org>
Mon, 10 Dec 2007 14:07:42 +0000 (14:07 +0000)
commitcc3de68e2151cf3341115212c56c17714ca03bb2
treeae3ddda4c88630bec70e1cf3430e007849bedfc5
parent0dbfa89ba1a781ec45763433e379572ed3257470
mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html

2007-12-10 15:08:59  Tim Janik  <timj@imendio.com>

        * let g_warn_if_fail replace g_assert as discussed here:
          http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html

        * fix bug #502498: Test framework assertion failures should follow
        gcc error format.

        * gmessages.h, gmessages.c: deprecated g_assert_warning() which is
        unused now. removed g_assert*() definitions whcih are provided by
        gtestutils.h now. added g_warn_if_reached() and g_warn_if_fail()
        which are recommended as g_assert/g_assert_not_reached replacements
        for non-test programs.
        added g_warn_message() to implement g_warn_*() macros.
        use emacs-next-error friendly formatting for file:line: for warnings.

        * gtestutils.h, gtestutils.c: use emacs-next-error friendly formatting.
        implement g_assert_not_reached() with g_assertion_message() and
        g_assert() in terms of g_assertion_message_expr() so we'll be able to
        provide assertion messages in test logs.

        * gkeyfile.c, gbookmarkfile.c: changed g_assert*() to g_warn_if_fail()
        or g_return_if_fail() where suitable.

        * gio/: changed g_assert to g_warn_if_fail.

svn path=/trunk/; revision=6086
31 files changed:
ChangeLog
gio/gasynchelper.c
gio/gbufferedinputstream.c
gio/gbufferedoutputstream.c
gio/gcancellable.c
gio/gdatainputstream.c
gio/gdummyfile.c
gio/gfile.c
gio/gfileenumerator.c
gio/gfileicon.c
gio/gfileinputstream.c
gio/gfileoutputstream.c
gio/ginputstream.c
gio/gloadableicon.c
gio/glocaldirectorymonitor.c
gio/glocalfileinfo.c
gio/glocalfilemonitor.c
gio/gmemoryinputstream.c
gio/gmemoryoutputstream.c
gio/goutputstream.c
gio/gunixinputstream.c
gio/gunixoutputstream.c
gio/gunixvolume.c
gio/pltcheck.sh
glib/gbookmarkfile.c
glib/gkeyfile.c
glib/glib.symbols
glib/gmessages.c
glib/gmessages.h
glib/gtestutils.c
glib/gtestutils.h