summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-02-05 16:10:34 +0100
committerDavid Disseldorp <ddiss@samba.org>2013-05-20 18:50:00 +0200
commitb072bb76dbdd96ee676c2bfbbffe58a187ef25ac (patch)
tree43c9cc3acbf7e40190fd0758501db85243bb8caa /source4/torture/rpc
parent69d9e3ef870fdd643bdc6fb4c893fa26d06fb2cf (diff)
downloadsamba-b072bb76dbdd96ee676c2bfbbffe58a187ef25ac.tar.gz
samba-b072bb76dbdd96ee676c2bfbbffe58a187ef25ac.tar.bz2
samba-b072bb76dbdd96ee676c2bfbbffe58a187ef25ac.zip
s4-torture: add missing NTSTATUS checks in test_AddJob().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index b3180039eb..6e2284e885 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -3198,11 +3198,13 @@ static bool test_AddJob(struct torture_context *tctx,
torture_comment(tctx, "Testing AddJob\n");
status = dcerpc_spoolss_AddJob_r(b, tctx, &r);
+ torture_assert_ntstatus_ok(tctx, status, "AddJob failed");
torture_assert_werr_equal(tctx, r.out.result, WERR_UNKNOWN_LEVEL, "AddJob failed");
r.in.level = 1;
status = dcerpc_spoolss_AddJob_r(b, tctx, &r);
+ torture_assert_ntstatus_ok(tctx, status, "AddJob failed");
torture_assert_werr_equal(tctx, r.out.result, WERR_INVALID_PARAM, "AddJob failed");
return true;