Eo: Fixed the tests when building in "release mode".
authorTom Hacohen <tom@stosb.com>
Sun, 6 May 2012 12:03:16 +0000 (12:03 +0000)
committerTom Hacohen <tom@stosb.com>
Sun, 6 May 2012 12:03:16 +0000 (12:03 +0000)
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

index 7b989a2..eae168c 100644 (file)
@@ -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();
 }