mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 11:44:03 +02:00
changed assertion messages, so older emacsen can also detect failing
2008-08-15 12:41:26 Tim Janik <timj@imendio.com> * glib/gtestutils.c: changed assertion messages, so older emacsen can also detect failing source file and line, fixes: Bug 502498 – Test framework assertion failures should follow gcc error format svn path=/trunk/; revision=7358
This commit is contained in:
committed by
Tim Janik
parent
4cafadc955
commit
6011a022d9
@@ -1,3 +1,9 @@
|
|||||||
|
2008-08-15 12:41:26 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
|
* glib/gtestutils.c: changed assertion messages, so older emacsen
|
||||||
|
can also detect failing source file and line, fixes:
|
||||||
|
Bug 502498 – Test framework assertion failures should follow gcc error format
|
||||||
|
|
||||||
2008-08-14 Matthias Clasen <mclasen@redhat.com>
|
2008-08-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 547832 – gtk+-2.12.11 fails to build - AC_PROG_MMAP too strict,
|
Bug 547832 – gtk+-2.12.11 fails to build - AC_PROG_MMAP too strict,
|
||||||
|
@@ -1267,10 +1267,10 @@ g_assertion_message (const char *domain,
|
|||||||
message = "code should not be reached";
|
message = "code should not be reached";
|
||||||
g_snprintf (lstr, 32, "%d", line);
|
g_snprintf (lstr, 32, "%d", line);
|
||||||
s = g_strconcat (domain ? domain : "", domain && domain[0] ? ":" : "",
|
s = g_strconcat (domain ? domain : "", domain && domain[0] ? ":" : "",
|
||||||
"ERROR:(", file, ":", lstr, "):",
|
"ERROR:", file, ":", lstr, ":",
|
||||||
func, func[0] ? ":" : "",
|
func, func[0] ? ":" : "",
|
||||||
" ", message, NULL);
|
" ", message, NULL);
|
||||||
g_printerr ("**\n** %s\n", s);
|
g_printerr ("**\n%s\n", s);
|
||||||
g_test_log (G_TEST_LOG_ERROR, s, NULL, 0, NULL);
|
g_test_log (G_TEST_LOG_ERROR, s, NULL, 0, NULL);
|
||||||
g_free (s);
|
g_free (s);
|
||||||
abort();
|
abort();
|
||||||
|
Reference in New Issue
Block a user