Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_text_fmt_test.c 


Log Message:
- convert most of the unit tests to LOG_FAILURE. rest will be converted by
  RbdPngn in a separate commit

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text_fmt/ewl_text_fmt_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_text_fmt_test.c 4 Dec 2007 05:28:04 -0000       1.1
+++ ewl_text_fmt_test.c 8 Dec 2007 06:43:09 -0000       1.2
@@ -91,7 +91,7 @@
        fmt = ewl_text_fmt_new(EWL_TEXT(t));
        if (!fmt)
        {
-               snprintf(buf, len, "_new returned NULL.");
+               LOG_FAILURE(buf, len, "_new returned NULL.");
                return 0;
        }
        ewl_widget_destroy(t);
@@ -107,7 +107,7 @@
        fmt = ewl_text_fmt_new(NULL);
        if (fmt)
        {
-               snprintf(buf, len, "_new returned fmt when Ewl_Text was NULL.");
+               LOG_FAILURE(buf, len, "_new returned fmt when Ewl_Text was 
NULL.");
                ewl_text_fmt_destroy(fmt);
                return 0;
        }
@@ -131,19 +131,19 @@
        ewl_text_fmt_clear(fmt);
        if (ecore_dlist_count(fmt->nodes) != 0)
        {
-               snprintf(buf, len, "_clear left items in -> nodes.");
+               LOG_FAILURE(buf, len, "_clear left items in -> nodes.");
                return 0;
        }
        if ((fmt->current_node.char_idx != 0)
                        || (fmt->current_node.byte_idx != 0))
        {
-               snprintf(buf, len, "_clear didn't reset current_node values.");
+               LOG_FAILURE(buf, len, "_clear didn't reset current_node 
values.");
                return 0;
        }
        if ((fmt->length.char_len != 0)
                        || (fmt->length.byte_len != 0))
        {
-               snprintf(buf, len, "_clear didn't reset length values.");
+               LOG_FAILURE(buf, len, "_clear didn't reset length values.");
                return 0;
        }
 
@@ -164,7 +164,7 @@
 
        if (ewl_text_fmt_node_count_get(fmt) != 0)
        {
-               snprintf(buf, len, "_count returned non-zero on blank list.");
+               LOG_FAILURE(buf, len, "_count returned non-zero on blank 
list.");
                return 0;
        }
        return 1;



-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to