[lasem] tests: display a message in case of incorrect cairo status



commit 0fa53d00be1faab74b43b3610783b1235dce3281
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Aug 10 21:09:42 2015 +0200

    tests: display a message in case of incorrect cairo status

 tests/suite.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/suite.c b/tests/suite.c
index f7fd6d0..7f1bf8a 100644
--- a/tests/suite.c
+++ b/tests/suite.c
@@ -85,8 +85,10 @@ render_test (gconstpointer user_data)
 
                if (cairo_status (cairo) != CAIRO_STATUS_SUCCESS) {
                        g_test_message ("cairo_status = %s", cairo_status_to_string (cairo_status (cairo)));
-                       if (!g_key_file_get_boolean (suite_options, basename, "ignore-cairo-status", NULL))
+                       if (!g_key_file_get_boolean (suite_options, basename, "ignore-cairo-status", NULL)) {
+                               g_test_message ("incorrect cairo status");
                                g_test_fail ();
+                       }
                }
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]