summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-11-21 10:20:36 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-21 10:20:36 +0100
commite42db35528189200d48e3052c4abac03a43b7b10 (patch)
tree7997455a4eb03cc62ccf0d84043640a613b91f5d
parent3b59913b9abc4e5c9a164970b0c99c5c13e0451f (diff)
tests/eo: Do not test for an integer when you get a pointer.
It works but the compiler is right when complaining about it. fail_unless() expects and integer but we passed in a pointer. Negate the pointer and use fail_if() like we do in all other places.
-rw-r--r--src/tests/eo/suite/eo_test_class_behaviour_errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eo/suite/eo_test_class_behaviour_errors.c b/src/tests/eo/suite/eo_test_class_behaviour_errors.c
index 1bd0e15c76..300f3fae21 100644
--- a/src/tests/eo/suite/eo_test_class_behaviour_errors.c
+++ b/src/tests/eo/suite/eo_test_class_behaviour_errors.c
@@ -43,10 +43,10 @@ START_TEST(eo_destructor_unref)
43 }; 43 };
44 44
45 klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL); 45 klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
46 fail_unless(klass); 46 fail_if(!klass);
47 47
48 Eo *obj = eo_add(klass, NULL); 48 Eo *obj = eo_add(klass, NULL);
49 fail_unless(obj); 49 fail_if(!obj);
50 50
51 TEST_EO_ERROR("_eo_unref", "Object %p deletion already triggered. You wrongly call eo_unref() within a destructor."); 51 TEST_EO_ERROR("_eo_unref", "Object %p deletion already triggered. You wrongly call eo_unref() within a destructor.");
52 eo_unref(obj); 52 eo_unref(obj);