Eo: Added some negative refcount tests (with manual_free).
authortasn <tasn>
Thu, 23 Aug 2012 10:37:46 +0000 (10:37 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Aug 2012 10:37:46 +0000 (10:37 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@75615 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/tests/eo_suite/eo_test_general.c

index 20ab4b5..b1151eb 100644 (file)
@@ -258,6 +258,17 @@ START_TEST(eo_man_free)
    eo_unref(obj);
    eo_manual_free(obj);
 
+   obj = eo_add(klass, NULL);
+   fail_if(!obj);
+   eo_manual_free_set(obj, EINA_TRUE);
+   eo_unref(obj);
+   eo_ref(obj);
+   eo_unref(obj);
+   eo_unref(obj);
+   eo_unref(obj);
+   eo_unref(obj);
+   eo_manual_free(obj);
+
    eo_shutdown();
 }
 END_TEST