Code

object: Let create_simple() accept an optional destructor.
[sysdb.git] / t / core / object_test.c
index 844dbc19982678484d46ff701011f5ba70250025..85e95c3a8b121cf590f6eee1e0de55a70ed703da 100644 (file)
@@ -159,7 +159,7 @@ START_TEST(test_obj_create)
        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),