diff --git a/t/core/object_test.c b/t/core/object_test.c
index b741b6cb6bb88b6f0b8e844cfc75c16207a20414..85e95c3a8b121cf590f6eee1e0de55a70ed703da 100644 (file)
--- a/t/core/object_test.c
+++ b/t/core/object_test.c
"sdb_object_create() did not initialize data to zero");
sdb_object_deref(obj);
- /* the memory address at 'obj' is no longer valid but usually this check
- * should still work */
- fail_unless(obj->ref_cnt == 0,
- "after sdb_object_deref(): obj->ref_cnt = %d; expected: 0",
- obj->ref_cnt);
fail_unless(destroy_noop_called == 1,
"sdb_object_deref() did not call object's destroy function");
sdb_object_deref(obj);
init_noop_called = 0;
- obj = sdb_object_create_simple(name, sizeof(struct noop));
+ obj = sdb_object_create_simple(name, sizeof(struct noop), NULL);
fail_unless(obj != NULL,
"sdb_object_create_simple() = NULL; expected: <obj>");
fail_unless(obj->type.size == sizeof(struct noop),
/* test_obj_create already checks the ref_cnt == 1 case */
obj->ref_cnt = 0;
sdb_object_deref(obj);
- fail_unless(obj->ref_cnt <= 0,
- "after db_object_deref(): obj->ref_cnt = %d; expected: <= 0",
- obj->ref_cnt);
-
fail_unless(init_noop_called == 1,
"after some sdb_object_{de,}ref(); object's init called %d times; "
"expected: 1", init_noop_called);