Eobj: change the tests according to the new wref concept.
authortasn <tasn>
Tue, 24 Apr 2012 12:27:22 +0000 (12:27 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 24 Apr 2012 12:27:22 +0000 (12:27 +0000)
We should not delete the wref if object is already freed. It's because
of the damn new wref API.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70438 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

tests/eobj_test_general.c

index 790f3f4..6185f6f 100644 (file)
@@ -76,8 +76,6 @@ START_TEST(eobj_weak_reference)
    eobj_unref(obj);
    fail_if(wref);
 
-   eobj_do(obj, eobj_wref_del(&wref));
-
    obj = eobj_add(SIMPLE_CLASS, NULL);
    eobj_do(obj, eobj_wref_add(&wref));
 
@@ -90,8 +88,6 @@ START_TEST(eobj_weak_reference)
    eobj_unref(obj);
    fail_if(wref);
 
-   eobj_do(obj, eobj_wref_del(&wref));
-
    obj = eobj_add(SIMPLE_CLASS, NULL);
 
    eobj_do(obj, eobj_wref_add(&wref));
@@ -285,7 +281,6 @@ START_TEST(eobj_magic_checks)
    Eobj *wref = NULL;
    eobj_do((Eobj *) buf, eobj_wref_add(&wref));
    fail_if(wref);
-   eobj_do(obj, eobj_wref_del(&wref));
 
    eobj_del((Eobj *) buf);