Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/button
Modified Files:
ewl_button_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/button/ewl_button_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_button_test.c 4 Dec 2007 05:27:58 -0000 1.1
+++ ewl_button_test.c 8 Dec 2007 06:43:08 -0000 1.2
@@ -215,7 +215,7 @@
ewl_button_label_set(EWL_BUTTON(button), "my_label");
if (strcmp("my_label", ewl_button_label_get(EWL_BUTTON(button))))
- snprintf(buf, len, "label_get dosen't match label_set");
+ LOG_FAILURE(buf, len, "label_get dosen't match label_set");
else
ret = 1;
@@ -233,7 +233,7 @@
button = ewl_button_new();
if (ewl_button_image_get(EWL_BUTTON(button)))
- snprintf(buf, len, "image_get not NULL");
+ LOG_FAILURE(buf, len, "image_get not NULL");
else
ret = 1;
@@ -254,7 +254,7 @@
ewl_button_image_set(EWL_BUTTON(button), NULL, NULL);
val = ewl_button_image_get(EWL_BUTTON(button));
if (val)
- snprintf(buf, len, "image_get %s when set to NULL", val);
+ LOG_FAILURE(buf, len, "image_get %s when set to NULL", val);
else
ret = 1;
@@ -273,7 +273,7 @@
ewl_button_image_set(EWL_BUTTON(button), "my_image", NULL);
if (strcmp("my_image", ewl_button_image_get(EWL_BUTTON(button))))
- snprintf(buf, len, "image_get dosen't match image_set");
+ LOG_FAILURE(buf, len, "image_get dosen't match image_set");
else
ret = 1;
@@ -293,7 +293,7 @@
ewl_button_image_size_get(EWL_BUTTON(button), &w, NULL);
if (w != 0)
- snprintf(buf, len, "image_size_get width not 0");
+ LOG_FAILURE(buf, len, "image_size_get width not 0");
else
ret = 1;
@@ -313,7 +313,7 @@
ewl_button_image_size_get(EWL_BUTTON(button), NULL, &h);
if (h != 0)
- snprintf(buf, len, "image_size_get height not 0");
+ LOG_FAILURE(buf, len, "image_size_get height not 0");
else
ret = 1;
@@ -334,7 +334,7 @@
ewl_button_image_size_set(EWL_BUTTON(button), 32, 32);
ewl_button_image_size_get(EWL_BUTTON(button), &w, &h);
if (w != 32 || h != 32)
- snprintf(buf, len, "image_size_get width and height don't
match");
+ LOG_FAILURE(buf, len, "image_size_get width and height don't
match");
else
ret = 1;
@@ -354,7 +354,7 @@
ewl_button_image_size_set(EWL_BUTTON(button), 30, 24);
ewl_button_image_size_get(EWL_BUTTON(button), &w, &h);
if (w != 30 || h != 24)
- snprintf(buf, len, "image_size_get width and height don't
differ");
+ LOG_FAILURE(buf, len, "image_size_get width and height don't
differ");
else
ret = 1;
@@ -374,7 +374,7 @@
ewl_button_image_size_set(EWL_BUTTON(button), INT_MAX, INT_MAX);
ewl_button_image_size_get(EWL_BUTTON(button), &w, &h);
if (w != INT_MAX|| h != INT_MAX)
- snprintf(buf, len, "image_size_get width and height not
INT_MAX");
+ LOG_FAILURE(buf, len, "image_size_get width and height not
INT_MAX");
else
ret = 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs