summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authora.srour <a.srour@samsung.com>2020-01-07 14:21:46 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2020-01-07 14:28:46 +0100
commitd3dc7dc86e854c41d166bc02340f53d3ab4f2a0f (patch)
tree42f726c6c3db53a21cba73426da88e731c05cba8
parent62c9eb179146784d2cafc8750dcfcda1dc0eba99 (diff)
downloadefl-d3dc7dc86e854c41d166bc02340f53d3ab4f2a0f.tar.gz
Fix worning and tests for edje text_class
Summary: This should fix the wornings and tests logic from previouse commit, diff D10692 Reviewers: ali.alzyod, segfaultxavi, woohyun Reviewed By: segfaultxavi Subscribers: cedric, #committers, #reviewers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11017
-rw-r--r--src/tests/edje/edje_test_text.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/edje/edje_test_text.c b/src/tests/edje/edje_test_text.c
index 96d5d91909..bb8499c049 100644
--- a/src/tests/edje/edje_test_text.c
+++ b/src/tests/edje/edje_test_text.c
@@ -104,10 +104,12 @@ EFL_START_TEST(edje_test_textblock)
obj = edje_object_add(evas);
ck_assert(edje_object_file_set(obj, test_layout_get("test_textblock.edj"), "test_textblock"));
txt = edje_object_part_text_get(obj, "text");
- ck_assert(txt || !strcmp(txt, "Bye"));
+ ck_assert_ptr_ne(txt, NULL);
+ ck_assert_int_eq(strcmp(txt, "Bye"), 0);
edje_object_part_text_set(obj, "text", buf);
txt = edje_object_part_text_get(obj, "text");
- ck_assert(txt || !strcmp(txt, buf));
+ ck_assert_ptr_ne(txt, NULL);
+ ck_assert_int_eq(strcmp(txt, buf), 0);
Evas_Object *obj2 = edje_object_add(evas);
ck_assert(edje_object_file_set(obj2, test_layout_get("test_textblock.edj"), "test_tc_textblock"));