[gtk/wip/otte/for-master: 4/6] testsuite: Don't die on the first error



commit 12a2efeb06758e119221e6c17cb6a4827d3f4862
Author: Benjamin Otte <otte redhat com>
Date:   Thu May 9 15:13:03 2019 +0200

    testsuite: Don't die on the first error
    
    Continue running the test, just mark it as a failure.

 testsuite/gsk/compare-render.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gsk/compare-render.c b/testsuite/gsk/compare-render.c
index 6c868849a9..92691c8b34 100644
--- a/testsuite/gsk/compare-render.c
+++ b/testsuite/gsk/compare-render.c
@@ -61,7 +61,8 @@ deserialize_error_func (const GtkCssSection *section,
 {
   char *section_str = gtk_css_section_to_string (section);
 
-  g_error ("Error at %s: %s", section_str, error->message);
+  g_test_message ("Error at %s: %s", section_str, error->message);
+  g_test_fail ();
 
   free (section_str);
 }


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