From 389cfcdf70725c2c02bf5692d5cb8fef1151d3a2 Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Thu, 22 Feb 2007 14:47:32 +0000 Subject: [PATCH] * Added error detection to truecolor test --- test/truecolor.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/truecolor.c b/test/truecolor.c index 791d007..0483557 100644 --- a/test/truecolor.c +++ b/test/truecolor.c @@ -33,7 +33,18 @@ int main(int argc, char *argv[]) int x, y; cv = cucul_create_canvas(32, 16); + if(cv == NULL) + { + printf("Failed to create canvas\n"); + return 1; + } + dp = caca_create_display(cv); + if(dp == NULL) + { + printf("Failed to create display\n"); + return 1; + } for(y = 0; y < 16; y++) for(x = 0; x < 16; x++)