[PATCH rendercheck] Report the success_mask to stdout

Eric Anholt eric at anholt.net
Mon May 9 13:47:56 PDT 2011


On Sat, 7 May 2011 18:20:17 -0700, Jeremy Huddleston <jeremyhu at apple.com> wrote:
> 
> This was previously computed but never passed on to the caller.
> 
> Found-by: clang static analyzer
> Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

Doing something useful with those success flags would be nice, but I
don't think a hex dump of it is that.

> ---
>  tests.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/tests.c b/tests.c
> index f722bc6..1b47eee 100644
> --- a/tests.c
> +++ b/tests.c
> @@ -752,7 +752,7 @@ do {								\
>  	free(test_mask);
>  	free(test_dst);
>  
> -	printf("%d tests passed of %d total\n", tests_passed, tests_total);
> +	printf("%d tests passed of %d total (successful groups: 0x%x)\n", tests_passed, tests_total, success_mask);
>  
>  	return tests_passed == tests_total;
>  }
> -- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110509/ae80f731/attachment.pgp>


More information about the xorg-devel mailing list