summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-05 10:48:25 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-05 10:48:25 +0200
commitcc74f213248f910c1c7908b23be07485752e85b9 (patch)
tree7e21497276348ffd947dc6e7c96ec44c03df9fd9 /source4
parent996a2054fb951139344712ee68774a55fb65ae1e (diff)
downloadsamba-cc74f213248f910c1c7908b23be07485752e85b9.tar.gz
samba-cc74f213248f910c1c7908b23be07485752e85b9.tar.bz2
samba-cc74f213248f910c1c7908b23be07485752e85b9.zip
s4:torture The test logic for the target was wrong. This should correct it.
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/ldap/basic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/ldap/basic.c b/source4/torture/ldap/basic.c
index ff95ba74ac..c2a26f81b8 100644
--- a/source4/torture/ldap/basic.c
+++ b/source4/torture/ldap/basic.c
@@ -217,7 +217,7 @@ static bool test_error_codes(struct torture_context *tctx,
WERROR err;
NTSTATUS status;
- printf("Testing error codes\n");
+ printf("Testing error codes - to make this test pass against SAMBA 4 you have to specify the target!\n");
if (!basedn) {
return false;
@@ -257,7 +257,7 @@ static bool test_error_codes(struct torture_context *tctx,
err = ad_error(rep->r.AddResponse.errormessage, &endptr);
err_code_str = win_errstr(err);
printf(" - Errorcode: %s; Reason: %s\n", err_code_str, endptr);
- if (torture_setting_bool(tctx, "samba4", false)) {
+ if (!torture_setting_bool(tctx, "samba4", false)) {
if ((!W_ERROR_EQUAL(err, WERR_DS_REFERRAL))
|| (rep->r.AddResponse.resultcode != 10)) {
return false;
@@ -298,7 +298,7 @@ static bool test_error_codes(struct torture_context *tctx,
err = ad_error(rep->r.ModifyResponse.errormessage, &endptr);
err_code_str = win_errstr(err);
printf(" - Errorcode: %s; Reason: %s\n", err_code_str, endptr);
- if (torture_setting_bool(tctx, "samba4", false)) {
+ if (!torture_setting_bool(tctx, "samba4", false)) {
if ((!W_ERROR_EQUAL(err, WERR_INVALID_PARAM))
|| (rep->r.ModifyResponse.resultcode != 53)) {
return false;
@@ -337,7 +337,7 @@ static bool test_error_codes(struct torture_context *tctx,
err = ad_error(rep->r.DelResponse.errormessage, &endptr);
err_code_str = win_errstr(err);
printf(" - Errorcode: %s; Reason: %s\n", err_code_str, endptr);
- if (torture_setting_bool(tctx, "samba4", false)) {
+ if (!torture_setting_bool(tctx, "samba4", false)) {
if ((!W_ERROR_EQUAL(err, WERR_DS_OBJ_NOT_FOUND))
|| (rep->r.DelResponse.resultcode != 32)) {
return false;