From c0a863b6f35315a748fa3bb4ae4e4e7c48ad2102 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 11 Sep 2010 17:41:38 +0200 Subject: s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP results --- source4/torture/ldb/ldb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/torture/ldb') diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c index 8bc6357e3d..8a5a3f309e 100644 --- a/source4/torture/ldb/ldb.c +++ b/source4/torture/ldb/ldb.c @@ -57,7 +57,7 @@ static bool torture_ldb_attrs(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); @@ -216,7 +216,7 @@ static bool torture_ldb_dn_attrs(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); @@ -334,7 +334,7 @@ static bool torture_ldb_dn_extended(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); @@ -595,7 +595,7 @@ static bool torture_ldb_dn(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); @@ -707,7 +707,7 @@ static bool torture_ldb_dn_invalid_extended(struct torture_context *torture) "Failed to init ldb"); torture_assert_int_equal(torture, - ldb_register_samba_handlers(ldb), 0, + ldb_register_samba_handlers(ldb), LDB_SUCCESS, "Failed to register Samba handlers"); ldb_set_utf8_fns(ldb, NULL, wrap_casefold); -- cgit