summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-02-27 16:57:23 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-04-12 09:22:12 -0400
commit79c090e8c25ac13454b9f12f4d6dc635029a0c9d (patch)
treed78af75e898c03a6244366b06e266e5acef8ef04 /src/tests
parent8c7f41a106b82e3451e2319546b8aff48977f685 (diff)
downloadsssd-79c090e8c25ac13454b9f12f4d6dc635029a0c9d.tar.gz
sssd-79c090e8c25ac13454b9f12f4d6dc635029a0c9d.tar.xz
sssd-79c090e8c25ac13454b9f12f4d6dc635029a0c9d.zip
sysdb: convert sysdb_delete_custom
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sysdb-tests.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index c6b1e5cf2..efd9d92e9 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -867,8 +867,6 @@ static void test_search_done(struct tevent_req *req)
return;
}
-static void test_delete_custom_done(struct tevent_req *subreq);
-
static void test_delete_custom(struct tevent_req *subreq)
{
struct test_data *data = tevent_req_callback_data(subreq,
@@ -882,22 +880,8 @@ static void test_delete_custom(struct tevent_req *subreq)
}
- subreq = sysdb_delete_custom_send(data, data->ev, data->handle,
- data->ctx->domain, CUSTOM_TEST_OBJECT,
- CUSTOM_TEST_CONTAINER);
- if (!subreq) {
- return test_return(data, ENOMEM);
- }
- tevent_req_set_callback(subreq, test_delete_custom_done, data);
-}
-
-static void test_delete_custom_done(struct tevent_req *subreq)
-{
- struct test_data *data = tevent_req_callback_data(subreq, struct test_data);
- int ret;
-
- ret = sysdb_delete_custom_recv(subreq);
- talloc_zfree(subreq);
+ ret = sysdb_delete_custom(data, data->ctx->sysdb, data->ctx->domain,
+ CUSTOM_TEST_OBJECT, CUSTOM_TEST_CONTAINER);
return test_return(data, ret);
}