summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-19 10:54:12 +0100
committerGünther Deschner <gd@samba.org>2010-03-19 10:56:03 +0100
commit3144a988e5e95671fd49bd2326099dff789fec5d (patch)
tree731f623e7d335d246cedb253041b85d062f6ebf9 /source4
parent53d35fc9587234c4d72b9622fc5144d50ba47a80 (diff)
downloadsamba-3144a988e5e95671fd49bd2326099dff789fec5d.tar.gz
samba-3144a988e5e95671fd49bd2326099dff789fec5d.tar.bz2
samba-3144a988e5e95671fd49bd2326099dff789fec5d.zip
s4-smbtorture: skip RAP netservergetinfo level 1 test against s3.
Guenther
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rap/rap.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index 2660aaf3d4..78fc6a410d 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -510,9 +510,18 @@ static bool test_netservergetinfo(struct torture_context *tctx,
r.in.bufsize = 0xffff;
r.in.level = 0;
- torture_assert_ntstatus_ok(tctx, smbcli_rap_netservergetinfo(cli->tree, lp_iconv_convenience(tctx->lp_ctx), tctx, &r), "");
+ torture_assert_ntstatus_ok(tctx,
+ smbcli_rap_netservergetinfo(cli->tree, lp_iconv_convenience(tctx->lp_ctx), tctx, &r),
+ "rap_netservergetinfo level 0 failed");
+
+ if (torture_setting_bool(tctx, "samba3", false)) {
+ torture_skip(tctx, "skipping netservergetinfo level 1 against samba3");
+ }
+
r.in.level = 1;
- torture_assert_ntstatus_ok(tctx, smbcli_rap_netservergetinfo(cli->tree, lp_iconv_convenience(tctx->lp_ctx), tctx, &r), "");
+ torture_assert_ntstatus_ok(tctx,
+ smbcli_rap_netservergetinfo(cli->tree, lp_iconv_convenience(tctx->lp_ctx), tctx, &r),
+ "rap_netservergetinfo level 1 failed");
return res;
}