From: Tom Hacohen Date: Sun, 6 May 2012 12:03:16 +0000 (+0000) Subject: Eo: Fixed the tests when building in "release mode". X-Git-Tag: submit/devel/efl/20131022.203902~5769 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1021dc21ec0387d1850f4d959abf44e7e4285e6;p=platform%2Fupstream%2Fefl.git Eo: Fixed the tests when building in "release mode". Our release mode safety checks are less strict, so we have to disable some of the test cases when testing there. SVN revision: 70794 --- diff --git a/legacy/eobj/tests/eo_test_general.c b/legacy/eobj/tests/eo_test_general.c index 7b989a2..eae168c 100644 --- a/legacy/eobj/tests/eo_test_general.c +++ b/legacy/eobj/tests/eo_test_general.c @@ -40,7 +40,10 @@ START_TEST(eo_data_fetch) Eo *obj = eo_add(klass, NULL); fail_if(!obj); +#ifndef NDEBUG fail_if(eo_data_get(obj, SIMPLE_CLASS)); +#endif + eo_unref(obj); eo_shutdown(); }