diff options
author | tasn <tasn> | 2012-08-23 10:37:46 +0000 |
---|---|---|
committer | tasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2012-08-23 10:37:46 +0000 |
commit | 5ff409b91f754f333896ceb0b36dfd693cb0541a (patch) | |
tree | 6e243c09f3703abdeedc9a8998746e8b07b11b21 | |
parent | a129099d48dc4f0c4fe7f1993b2218439dc1c15e (diff) | |
download | eobj-5ff409b91f754f333896ceb0b36dfd693cb0541a.tar.gz eobj-5ff409b91f754f333896ceb0b36dfd693cb0541a.tar.bz2 eobj-5ff409b91f754f333896ceb0b36dfd693cb0541a.zip |
Eo: Added some negative refcount tests (with manual_free).
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@75615 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
-rw-r--r-- | src/tests/eo_suite/eo_test_general.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/eo_suite/eo_test_general.c b/src/tests/eo_suite/eo_test_general.c index 20ab4b5..b1151eb 100644 --- a/src/tests/eo_suite/eo_test_general.c +++ b/src/tests/eo_suite/eo_test_general.c @@ -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 |