summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-08-23 10:37:46 +0000
committerTom Hacohen <tom@stosb.com>2012-08-23 10:37:46 +0000
commitb6c18924638d8c79902a76ecceb2ddc737451b3e (patch)
tree92bc9cb36859d12c96af9282d1c7d4b77a831a35
parent410488aabeed583ff96a648ed1de2a207d0cf49e (diff)
Eo: Added some negative refcount tests (with manual_free).
SVN revision: 75615
-rw-r--r--legacy/eobj/src/tests/eo_suite/eo_test_general.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/eobj/src/tests/eo_suite/eo_test_general.c b/legacy/eobj/src/tests/eo_suite/eo_test_general.c
index 20ab4b5c29..b1151eb61e 100644
--- a/legacy/eobj/src/tests/eo_suite/eo_test_general.c
+++ b/legacy/eobj/src/tests/eo_suite/eo_test_general.c
@@ -258,6 +258,17 @@ START_TEST(eo_man_free)
258 eo_unref(obj); 258 eo_unref(obj);
259 eo_manual_free(obj); 259 eo_manual_free(obj);
260 260
261 obj = eo_add(klass, NULL);
262 fail_if(!obj);
263 eo_manual_free_set(obj, EINA_TRUE);
264 eo_unref(obj);
265 eo_ref(obj);
266 eo_unref(obj);
267 eo_unref(obj);
268 eo_unref(obj);
269 eo_unref(obj);
270 eo_manual_free(obj);
271
261 eo_shutdown(); 272 eo_shutdown();
262} 273}
263END_TEST 274END_TEST