Eo: Added some negative refcount tests (with manual_free).
authorTom Hacohen <tom@stosb.com>
Thu, 23 Aug 2012 10:37:46 +0000 (10:37 +0000)
committerTom Hacohen <tom@stosb.com>
Thu, 23 Aug 2012 10:37:46 +0000 (10:37 +0000)
SVN revision: 75615

legacy/eobj/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