summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-16 18:34:57 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-17 01:09:32 +0100
commit714954c16f2da11dcf2abda584dc3d7eca8361bb (patch)
tree39c337e3b9028d4d22f16f2612f6aacdcc47d5ea
parenta6854f2c0aa5f7b4bd243f7df2ca86fb15deebe6 (diff)
downloadsamba-714954c16f2da11dcf2abda584dc3d7eca8361bb.tar.gz
samba-714954c16f2da11dcf2abda584dc3d7eca8361bb.tar.bz2
samba-714954c16f2da11dcf2abda584dc3d7eca8361bb.zip
s4:torture/rap/printing: check smbcli_rap_netprintqgetinfo() WERR status
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Dec 17 01:09:32 CET 2011 on sn-devel-104
-rw-r--r--source4/torture/rap/printing.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/rap/printing.c b/source4/torture/rap/printing.c
index 800840c384..af76b263df 100644
--- a/source4/torture/rap/printing.c
+++ b/source4/torture/rap/printing.c
@@ -129,6 +129,10 @@ static bool test_netprintqgetinfo(struct torture_context *tctx,
torture_assert_ntstatus_ok(tctx,
smbcli_rap_netprintqgetinfo(cli->tree, tctx, &r),
"smbcli_rap_netprintqgetinfo failed");
+ torture_assert_werr_equal(tctx,
+ W_ERROR(r.out.status),
+ WERR_INVALID_PARAMETER,
+ "smbcli_rap_netprintqgetinfo failed");
r_enum.in.level = 5;
r_enum.in.bufsize = 8192;
@@ -153,6 +157,9 @@ static bool test_netprintqgetinfo(struct torture_context *tctx,
torture_assert_ntstatus_ok(tctx,
smbcli_rap_netprintqgetinfo(cli->tree, tctx, &r),
"smbcli_rap_netprintqgetinfo failed");
+ torture_assert_werr_ok(tctx,
+ W_ERROR(r.out.status),
+ "smbcli_rap_netprintqgetinfo failed");
switch (r.in.level) {
case 0: