[gtk+/parser: 74/74] tests: Be more verbose in error messages.
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/parser: 74/74] tests: Be more verbose in error messages.
- Date: Mon, 9 May 2011 15:28:58 +0000 (UTC)
commit d1deccfbdf54ad354b2dcb0b7ce2368b0519265e
Author: Benjamin Otte <otte redhat com>
Date: Fri Apr 15 16:21:25 2011 +0200
tests: Be more verbose in error messages.
Also, it makes it easier to copy/paste diffs from the message log...
tests/css/parser/test-css-parser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/css/parser/test-css-parser.c b/tests/css/parser/test-css-parser.c
index ed1e3e0..6329a20 100644
--- a/tests/css/parser/test-css-parser.c
+++ b/tests/css/parser/test-css-parser.c
@@ -192,7 +192,7 @@ test_css_file (GFile *file)
if (diff && diff[0])
{
- g_test_message ("%s", diff);
+ g_test_message ("Resulting CSS doesn't match reference:\n%s", diff);
g_test_fail ();
}
@@ -208,7 +208,7 @@ test_css_file (GFile *file)
if (diff && diff[0])
{
- g_test_message ("%s", diff);
+ g_test_message ("Errors don't match expected errors:\n%s", diff);
g_test_fail ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]