forked from enlightenment/efl
Eobj: change the tests according to the new wref concept.
We should not delete the wref if object is already freed. It's because of the damn new wref API. SVN revision: 70438
This commit is contained in:
parent
47161b869c
commit
f393ebfffe
|
@ -76,8 +76,6 @@ START_TEST(eobj_weak_reference)
|
||||||
eobj_unref(obj);
|
eobj_unref(obj);
|
||||||
fail_if(wref);
|
fail_if(wref);
|
||||||
|
|
||||||
eobj_do(obj, eobj_wref_del(&wref));
|
|
||||||
|
|
||||||
obj = eobj_add(SIMPLE_CLASS, NULL);
|
obj = eobj_add(SIMPLE_CLASS, NULL);
|
||||||
eobj_do(obj, eobj_wref_add(&wref));
|
eobj_do(obj, eobj_wref_add(&wref));
|
||||||
|
|
||||||
|
@ -90,8 +88,6 @@ START_TEST(eobj_weak_reference)
|
||||||
eobj_unref(obj);
|
eobj_unref(obj);
|
||||||
fail_if(wref);
|
fail_if(wref);
|
||||||
|
|
||||||
eobj_do(obj, eobj_wref_del(&wref));
|
|
||||||
|
|
||||||
obj = eobj_add(SIMPLE_CLASS, NULL);
|
obj = eobj_add(SIMPLE_CLASS, NULL);
|
||||||
|
|
||||||
eobj_do(obj, eobj_wref_add(&wref));
|
eobj_do(obj, eobj_wref_add(&wref));
|
||||||
|
@ -285,7 +281,6 @@ START_TEST(eobj_magic_checks)
|
||||||
Eobj *wref = NULL;
|
Eobj *wref = NULL;
|
||||||
eobj_do((Eobj *) buf, eobj_wref_add(&wref));
|
eobj_do((Eobj *) buf, eobj_wref_add(&wref));
|
||||||
fail_if(wref);
|
fail_if(wref);
|
||||||
eobj_do(obj, eobj_wref_del(&wref));
|
|
||||||
|
|
||||||
eobj_del((Eobj *) buf);
|
eobj_del((Eobj *) buf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue