summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-13 14:44:29 +0100
committerGünther Deschner <gd@samba.org>2009-01-14 10:18:13 +0100
commitaf9f7a39f0e641df6a0c84e90261fe626e585ed8 (patch)
treeda6e33752903dff7a87d1bba183a2e3228cd7389 /source4/torture/rpc
parent4994956ad02c1fbd95a8e398f5472ec5ee8e539c (diff)
downloadsamba-af9f7a39f0e641df6a0c84e90261fe626e585ed8.tar.gz
samba-af9f7a39f0e641df6a0c84e90261fe626e585ed8.tar.bz2
samba-af9f7a39f0e641df6a0c84e90261fe626e585ed8.zip
s4-smbtorture: also test for invalid flags in eventlog test_ReadEventLog.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/eventlog.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c
index 7c3cb0ef46..7d880908b6 100644
--- a/source4/torture/rpc/eventlog.c
+++ b/source4/torture/rpc/eventlog.c
@@ -107,7 +107,12 @@ static bool test_ReadEventLog(struct torture_context *tctx,
ZERO_STRUCT(r);
r.in.offset = 0;
r.in.handle = &handle;
- r.in.flags = EVENTLOG_BACKWARDS_READ|EVENTLOG_SEQUENTIAL_READ;
+ r.in.flags = 0;
+
+ status = dcerpc_eventlog_ReadEventLogW(p, tctx, &r);
+
+ torture_assert_ntstatus_equal(tctx, r.out.result, NT_STATUS_INVALID_PARAMETER,
+ "ReadEventLog failed");
while (1) {
DATA_BLOB blob;
@@ -120,6 +125,7 @@ static bool test_ReadEventLog(struct torture_context *tctx,
/* Read first for number of bytes in record */
r.in.number_of_bytes = 0;
+ r.in.flags = EVENTLOG_BACKWARDS_READ|EVENTLOG_SEQUENTIAL_READ;
r.out.data = NULL;
r.out.sent_size = &sent_size;
r.out.real_size = &real_size;