Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/button


Modified Files:
        ewl_button.c 


Log Message:
Add a quiet flag to unit tests to suppress stderr.
Test for quiet flag and temporarily redirect stderr to /dev/null.
Allow disabling the stderr redirect by passing the -d arg.
Re-order unit test fields to eliminate holes.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/button/ewl_button.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_button.c        8 Nov 2007 06:02:12 -0000       1.10
+++ ewl_button.c        11 Nov 2007 08:03:39 -0000      1.11
@@ -40,16 +40,16 @@
 static int image_size_max_int_test_set_get(char *buf, int len);
 
 static Ewl_Unit_Test button_unit_tests[] = {
-               {"label set/get", label_test_set_get, -1, NULL},
-               {"image null get", image_null_test_get, -1, NULL},
-               {"image null set/get", image_null_test_set_get, -1, NULL},
-               {"image nonexistent set/get", 
image_nonexist_relative_test_set_get, -1, NULL},
-               {"image size null height set/get", 
image_size_null_height_test_set_get, -1, NULL},
-               {"image size null width set/get", 
image_size_null_width_test_set_get, -1, NULL},
-               {"image size match set/get", image_size_match_test_set_get, -1, 
NULL},
-               {"image size differ set/get", image_size_differ_test_set_get, 
-1, NULL},
-               {"image size max int set/get", image_size_max_int_test_set_get, 
-1, NULL},
-               {NULL, NULL, -1, NULL}
+               {"label set/get", label_test_set_get, NULL, -1, 0},
+               {"image null get", image_null_test_get, NULL, -1, 0},
+               {"image null set/get", image_null_test_set_get, NULL, -1, 0},
+               {"image nonexistent set/get", 
image_nonexist_relative_test_set_get, NULL, -1, 0},
+               {"image size null height set/get", 
image_size_null_height_test_set_get, NULL, -1 , 0},
+               {"image size null width set/get", 
image_size_null_width_test_set_get, NULL, -1, 0},
+               {"image size match set/get", image_size_match_test_set_get, 
NULL, -1, 0},
+               {"image size differ set/get", image_size_differ_test_set_get, 
NULL, -1, 0},
+               {"image size max int set/get", image_size_max_int_test_set_get, 
NULL, -1, 0},
+               {NULL, NULL, NULL, -1, 0}
        };
 
 void



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to