gegl r2956 - in trunk: . tests



Author: martinn
Date: Sun Mar  1 12:50:58 2009
New Revision: 2956
URL: http://svn.gnome.org/viewvc/gegl?rev=2956&view=rev

Log:
Memset result buffer before each processing in the test case

Modified:
   trunk/ChangeLog
   trunk/tests/test-proxynop-processing.c

Modified: trunk/tests/test-proxynop-processing.c
==============================================================================
--- trunk/tests/test-proxynop-processing.c	(original)
+++ trunk/tests/test-proxynop-processing.c	Sun Mar  1 12:50:58 2009
@@ -15,6 +15,8 @@
  * Copyright (C) 2009 Martin Nordholts
  */
 
+#include <string.h>
+
 #include "gegl.h"
 
 #define RED      0
@@ -63,6 +65,7 @@
                        NULL);
 
   /* Process the graph and make sure we get the expected result */
+  memset (result_buffer, 0, sizeof (result_buffer));
   gegl_node_blit (graph_output_proxy,
                   1.0,
                   &roi,
@@ -85,6 +88,7 @@
   gegl_node_set (color_in_graph,
                  "value", color2,
                  NULL);
+  memset (result_buffer, 0, sizeof (result_buffer));
   gegl_node_blit (graph_output_proxy,
                   1.0,
                   &roi,



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