Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/text
Modified Files:
ewl_text_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/ewl_text_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_text_test.c 4 Dec 2007 05:28:04 -0000 1.1
+++ ewl_text_test.c 8 Dec 2007 06:43:09 -0000 1.2
@@ -294,7 +294,7 @@
t = ewl_text_text_get(EWL_TEXT(o));
if (strcmp(t, "This is the test text."))
- snprintf(buf, len, "text_get did not match text_set.");
+ LOG_FAILURE(buf, len, "text_get did not match text_set.");
else
ret = 1;
@@ -323,7 +323,7 @@
returned_text = ewl_text_text_get(EWL_TEXT(t));
if (strcmp(text, returned_text)) {
- snprintf(buf, len, "Incorrect UTF-8 validation during"
+ LOG_FAILURE(buf, len, "Incorrect UTF-8 validation during"
"setting a US-ASCII string");
return FALSE;
}
@@ -344,7 +344,7 @@
returned_text = ewl_text_text_get(EWL_TEXT(t));
if (strcmp(text, returned_text)) {
- snprintf(buf, len, "Incorrect UTF-8 validation during"
+ LOG_FAILURE(buf, len, "Incorrect UTF-8 validation during"
"setting a valid UTF-8 string");
return FALSE;
}
@@ -380,7 +380,7 @@
returned_text = ewl_text_text_get(EWL_TEXT(t));
if (!returned_text)
- snprintf(buf, len, "ewl_text_text_get() returned a NULL
pointer");
+ LOG_FAILURE(buf, len, "ewl_text_text_get() returned a NULL
pointer");
else if (!strcmp(text, returned_text)
|| returned_text[2] < 0
@@ -388,7 +388,7 @@
|| returned_text[10] < 0
|| returned_text[11] < 0)
{
- snprintf(buf, len, "Incorrect UTF-8 validation during"
+ LOG_FAILURE(buf, len, "Incorrect UTF-8 validation during"
"setting a invalid UTF-8 string");
return FALSE;
}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs