Eo: Added some negative refcount tests (with manual_free).
[profile/ivi/eobj.git] / 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