[babl] Show the details of the fish that caused a failure



commit daccb5dbad7421e2b717c8ce6f0328dcb350f92b
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Mon Apr 29 19:43:41 2013 -0700

    Show the details of the fish that caused a failure

 tests/common.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/common.inc b/tests/common.inc
index 8d573fd..501644a 100644
--- a/tests/common.inc
+++ b/tests/common.inc
@@ -1,4 +1,6 @@
 
+#include "babl/babl-introspect.h"
+
 #define CHECK_CONV(test_name, componenttype, src_fmt, dst_fmt, src_pix, expected_pix) \
   {       \
   const Babl *fish;       \
@@ -19,6 +21,7 @@
         {       \
           printf (" %s failed #%i[%i]  got %i expected %i\n", test_name, i, c, result[c], 
expected_pix[i][c]);       \
           OK = 0;          \
+          babl_introspect((Babl *)fish); \
         }       \
     }       \
   }


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