[gtk+] tests: Be more verbose in error messages.
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Be more verbose in error messages.
- Date: Wed, 18 May 2011 20:30:20 +0000 (UTC)
commit ce44c95ce89b835d49aa7dab2252c2cc6b993986
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]