Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/text_fmt Modified Files: ewl_text_fmt.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/text_fmt/ewl_text_fmt.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_text_fmt.c 8 Nov 2007 20:40:10 -0000 1.6 +++ ewl_text_fmt.c 11 Nov 2007 08:03:40 -0000 1.7 @@ -34,41 +34,41 @@ static int tf_apply_partial_node_text(char *buf, int len); static Ewl_Unit_Test text_fmt_unit_tests[] = { - {"New Format", tf_new, -1, NULL}, - {"New NULL Text", tf_new_null_text, -1, NULL}, - {"Clear Format", tf_clear, -1, NULL}, - - {"Count empty", tf_count_empty, -1, NULL}, - {"Count non-empty", tf_count_non_empty, -1, NULL}, - - {"Prepend to empty", tf_prepend_empty, -1, NULL}, - {"Prepend to non-empty", tf_prepend_non_empty, -1, NULL}, - {"Append to empty", tf_append_empty, -1, NULL}, - {"Append to non-empty", tf_append_non_empty, -1, NULL}, - {"Insert to empty", tf_insert_empty, -1, NULL}, - {"Insert to non-empty", tf_insert_non_empty, -1, NULL}, - - {"Delete from empty list", tf_delete_empty, -1, NULL}, - {"Delete from non-empty list", tf_delete_non_empty, -1, NULL}, - {"Delete past end text", tf_delete_past_end, -1, NULL}, - {"Delete all", tf_delete_all, -1, NULL}, - {"Delete full node", tf_delete_full_node, -1, NULL}, - {"Delete partial node", tf_delete_partial_node, -1, NULL}, + {"New Format", tf_new, NULL, -1, 0}, + {"New NULL Text", tf_new_null_text, NULL, -1, 1}, + {"Clear Format", tf_clear, NULL, -1, 0}, + + {"Count empty", tf_count_empty, NULL, -1, 0}, + {"Count non-empty", tf_count_non_empty, NULL, -1, 0}, + + {"Prepend to empty", tf_prepend_empty, NULL, -1, 0}, + {"Prepend to non-empty", tf_prepend_non_empty, NULL, -1, 0}, + {"Append to empty", tf_append_empty, NULL, -1, 0}, + {"Append to non-empty", tf_append_non_empty, NULL, -1, 0}, + {"Insert to empty", tf_insert_empty, NULL, -1, 0}, + {"Insert to non-empty", tf_insert_non_empty, NULL, -1, 0}, + + {"Delete from empty list", tf_delete_empty, NULL, -1, 0}, + {"Delete from non-empty list", tf_delete_non_empty, NULL, -1, 0}, + {"Delete past end text", tf_delete_past_end, NULL, -1, 0}, + {"Delete all", tf_delete_all, NULL, -1, 0}, + {"Delete full node", tf_delete_full_node, NULL, -1, 0}, + {"Delete partial node", tf_delete_partial_node, NULL, -1, 0}, /* gets */ /* goto's */ /* apply */ - {"Apply empty text", tf_apply_empty_text, -1, NULL}, - {"Apply full text", tf_apply_full_text, -1, NULL}, - {"Apply past end text", tf_apply_past_end_text, -1, NULL}, - {"Apply full node text", tf_apply_full_node_text, -1, NULL}, - {"Apply partial node text", tf_apply_partial_node_text, -1, NULL}, + {"Apply empty text", tf_apply_empty_text, NULL, -1, 0}, + {"Apply full text", tf_apply_full_text, NULL, -1, 0}, + {"Apply past end text", tf_apply_past_end_text, NULL, -1, 0}, + {"Apply full node text", tf_apply_full_node_text, NULL, -1, 0}, + {"Apply partial node text", tf_apply_partial_node_text, NULL, -1, 0}, /* char_to_byte */ /* byte_to_char */ - {NULL, NULL, -1, NULL} + {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