1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:torture/rpc: make use of explicit dcerpc_*_recv functions

metze
This commit is contained in:
Stefan Metzmacher 2010-02-27 10:59:14 +01:00
parent 598cf9f509
commit c84b4b23c8
5 changed files with 7 additions and 7 deletions

View File

@ -262,7 +262,7 @@ static bool test_sleep(struct torture_context *tctx,
rcv[i] = timeval_current();
diff[i] = timeval_until(&snd[i], &rcv[i]);
rounded_tdiff = (int)(0.5 + diff[i].tv_sec + (1.0e-6*diff[i].tv_usec));
status = dcerpc_ndr_request_recv(req[i]);
status = dcerpc_echo_TestSleep_recv(req[i]);
torture_comment(tctx, "rounded_tdiff=%d\n", rounded_tdiff);
torture_assert_ntstatus_ok(tctx, status,
talloc_asprintf(tctx, "TestSleep(%d) failed", i));
@ -395,7 +395,7 @@ static bool test_timeout(struct torture_context *tctx,
}
req->ignore_timeout = true;
status = dcerpc_ndr_request_recv(req);
status = dcerpc_echo_TestSleep_recv(req);
torture_assert_ntstatus_equal(tctx, status, NT_STATUS_IO_TIMEOUT,
"request should have timed out");
@ -413,7 +413,7 @@ static bool test_timeout(struct torture_context *tctx,
goto failed;
}
req->ignore_timeout = true;
status = dcerpc_ndr_request_recv(req);
status = dcerpc_echo_TestSleep_recv(req);
torture_assert_ntstatus_equal(tctx, status, NT_STATUS_IO_TIMEOUT,
"request should have timed out");

View File

@ -752,7 +752,7 @@ static void lookupsids_cb(struct rpc_request *req)
int *replies = (int *)req->async.private_data;
NTSTATUS status;
status = dcerpc_ndr_request_recv(req);
status = dcerpc_lsa_LookupSids_recv(req);
if (!NT_STATUS_IS_OK(status)) {
printf("lookupsids returned %s\n", nt_errstr(status));
*replies = -1;

View File

@ -2698,7 +2698,7 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx,
}
for (i=0;i<ASYNC_COUNT;i++) {
status = dcerpc_ndr_request_recv(req[i]);
status = dcerpc_netr_LogonGetDomainInfo_recv(req[i]);
torture_assert_ntstatus_ok(tctx, status, "netr_LogonGetDomainInfo_async");
torture_assert_ntstatus_ok(tctx, r.out.result, "netr_LogonGetDomainInfo_async");

View File

@ -5897,7 +5897,7 @@ static bool test_EnumDomainUsers_async(struct dcerpc_pipe *p, struct torture_con
}
for (i=0;i<ASYNC_COUNT;i++) {
status = dcerpc_ndr_request_recv(req[i]);
status = dcerpc_samr_EnumDomainUsers_recv(req[i]);
if (!NT_STATUS_IS_OK(status)) {
torture_warning(tctx, "EnumDomainUsers[%d] failed - %s\n",
i, nt_errstr(status));

View File

@ -645,7 +645,7 @@ static void torture_schannel_bench_recv(struct rpc_request *req)
struct torture_schannel_bench *s = talloc_get_type(conn->s,
struct torture_schannel_bench);
s->error = dcerpc_ndr_request_recv(req);
s->error = dcerpc_netr_LogonSamLogonEx_recv(req);
if (!NT_STATUS_IS_OK(s->error)) {
return;
}