[PATCH rendercheck] Print format of dst picture in a failed test

Connor Behan connor.behan at gmail.com
Fri Jan 24 11:44:35 PST 2014


Rendercheck already prints the intended destination when it tries the
tests. To actually know which test failed the user needs to know the
color format of whatever picture was being tried.

Signed-off-by: Connor Behan <connor.behan at gmail.com>
---
 t_blend.c     | 2 +-
 t_composite.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/t_blend.c b/t_blend.c
index 57b2f2d..d522d37 100644
--- a/t_blend.c
+++ b/t_blend.c
@@ -124,7 +124,7 @@ blend_test(Display *dpy, picture_info *win, picture_info *dst,
 							   dst_color[k]->color.g,
 							   dst_color[k]->color.b,
 							   dst_color[k]->color.a);
-						    printf("src: %s, dst: %s\n", src_color[j]->name, dst->name);
+						    printf("src: %s, dst: %s\n", src_color[j]->name, dst_color[k]->name);
 						    return FALSE;
 					    }
 				    }
diff --git a/t_composite.c b/t_composite.c
index 73133db..4e38303 100644
--- a/t_composite.c
+++ b/t_composite.c
@@ -155,7 +155,7 @@ composite_test(Display *dpy, picture_info *win, picture_info *dst,
 				printf("src: %s, mask: %s, dst: %s\n",
 				       src_color[s]->name,
 				       mask_color[m]->name,
-				       dst->name);
+				       dst_color[d]->name);
 				XDestroyImage(image);
 				return FALSE;
 			    }
-- 
1.8.5.2



More information about the xorg-devel mailing list