diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-08-01 00:26:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:14 -0500 |
commit | 555eee1456737abacbe59db1d1bb82370507f031 (patch) | |
tree | 310a51c444c7327d6d00c0ae8d6f78016f0d4346 /source4/torture | |
parent | 18daf6ec4de11ce7534dbec46bffcd2d6f8ebdbd (diff) | |
download | samba-555eee1456737abacbe59db1d1bb82370507f031.tar.gz samba-555eee1456737abacbe59db1d1bb82370507f031.tar.bz2 samba-555eee1456737abacbe59db1d1bb82370507f031.zip |
r8874: test some more combinations
metze
(This used to be commit 32c64e5bc2610d319b4e2e433e149cdd4bc538c9)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/local/irpc.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source4/torture/local/irpc.c b/source4/torture/local/irpc.c index 2558ccb5c9..b6df141fdf 100644 --- a/source4/torture/local/irpc.c +++ b/source4/torture/local/irpc.c @@ -48,13 +48,14 @@ static NTSTATUS irpc_AddOne(struct irpc_message *irpc, struct echo_AddOne *r) */ static BOOL test_addone(TALLOC_CTX *mem_ctx, struct messaging_context *msg_ctx1, - struct messaging_context *msg_ctx2) + struct messaging_context *msg_ctx2, + uint32_t value) { struct echo_AddOne r; NTSTATUS status; /* make the call */ - r.in.in_data = random() & 0xFFFFFFFF; + r.in.in_data = value; test_debug = True; status = IRPC_CALL(msg_ctx1, MSG_ID2, rpcecho, ECHO_ADDONE, &r); @@ -168,7 +169,11 @@ BOOL torture_local_irpc(void) IRPC_REGISTER(msg_ctx1, rpcecho, ECHO_ADDONE, irpc_AddOne, NULL); IRPC_REGISTER(msg_ctx2, rpcecho, ECHO_ADDONE, irpc_AddOne, NULL); - ret &= test_addone(mem_ctx, msg_ctx1, msg_ctx2); + ret &= test_addone(mem_ctx, msg_ctx1, msg_ctx2, 0); + ret &= test_addone(mem_ctx, msg_ctx1, msg_ctx2, 0x7FFFFFFE); + ret &= test_addone(mem_ctx, msg_ctx1, msg_ctx2, 0xFFFFFFFE); + ret &= test_addone(mem_ctx, msg_ctx1, msg_ctx2, 0xFFFFFFFF); + ret &= test_addone(mem_ctx, msg_ctx1, msg_ctx2, random() & 0xFFFFFFFF); ret &= test_speed(mem_ctx, msg_ctx1, msg_ctx2, ev); talloc_free(mem_ctx); |