From e1021dc21ec0387d1850f4d959abf44e7e4285e6 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 6 May 2012 12:03:16 +0000 Subject: [PATCH] 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 --- legacy/eobj/tests/eo_test_general.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/eobj/tests/eo_test_general.c b/legacy/eobj/tests/eo_test_general.c index 7b989a21f6..eae168c8e9 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(); }