Eo: Added some negative refcount tests (with manual_free).

SVN revision: 75615
This commit is contained in:
Tom Hacohen 2012-08-23 10:37:46 +00:00
parent 410488aabe
commit b6c1892463
1 changed files with 11 additions and 0 deletions

View 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