Re: [Piglit] [PATCH 12/23] util: Add wrappers for malloc and calloc that catch errors

2012-10-03 Thread Kenneth Graunke
On 09/28/2012 10:44 AM, Chad Versace wrote: Memory allocation should rarely fail, but when it does the test should immediately abort and explain why. This patch defines two utility wrapper functions, piglit_malloc() and piglit_calloc(), that do exactly that when allocation fails. Signed-off-by:

[Piglit] [PATCH 12/23] util: Add wrappers for malloc and calloc that catch errors

2012-09-28 Thread Chad Versace
Memory allocation should rarely fail, but when it does the test should immediately abort and explain why. This patch defines two utility wrapper functions, piglit_malloc() and piglit_calloc(), that do exactly that when allocation fails. Signed-off-by: Chad Versace chad.vers...@linux.intel.com ---