[gtk+/parser: 74/74] tests: Be more verbose in error messages.



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]