summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-08 19:18:49 +0200
committerGünther Deschner <gd@samba.org>2009-04-08 19:45:58 +0200
commit0be30e8ced4fd9a3afb72ee211cdcd2a66709f13 (patch)
treed1636c9dcc816a124729cc18a4774da172921de4
parent47bda3f3c7095044ae4c9b1535198be6d052060d (diff)
downloadsamba-0be30e8ced4fd9a3afb72ee211cdcd2a66709f13.tar.gz
samba-0be30e8ced4fd9a3afb72ee211cdcd2a66709f13.tar.bz2
samba-0be30e8ced4fd9a3afb72ee211cdcd2a66709f13.zip
s4-smbtorture: fix test_ReportEventLog in RPC-EVENTLOG.
Guenther
-rw-r--r--source4/torture/rpc/eventlog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c
index 10c4886259..865b4e2217 100644
--- a/source4/torture/rpc/eventlog.c
+++ b/source4/torture/rpc/eventlog.c
@@ -203,7 +203,6 @@ static bool test_ReadEventLog(struct torture_context *tctx,
static bool test_ReportEventLog(struct torture_context *tctx,
struct dcerpc_pipe *p)
{
- NTSTATUS status;
struct eventlog_ReportEventW r;
struct eventlog_CloseEventLog cr;
struct policy_handle handle;
@@ -237,7 +236,9 @@ static bool test_ReportEventLog(struct torture_context *tctx,
r.out.record_number = &record_number;
r.out.time_written = &time_written;
- status = dcerpc_eventlog_ReportEventW(p, tctx, &r);
+ torture_assert_ntstatus_ok(tctx,
+ dcerpc_eventlog_ReportEventW(p, tctx, &r),
+ "ReportEventW failed");
torture_assert_ntstatus_ok(tctx, r.out.result, "ReportEventW failed");