mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
s4:torture/rpc: make use of explicit dcerpc_*_recv functions
metze
This commit is contained in:
parent
598cf9f509
commit
c84b4b23c8
@ -262,7 +262,7 @@ static bool test_sleep(struct torture_context *tctx,
|
|||||||
rcv[i] = timeval_current();
|
rcv[i] = timeval_current();
|
||||||
diff[i] = timeval_until(&snd[i], &rcv[i]);
|
diff[i] = timeval_until(&snd[i], &rcv[i]);
|
||||||
rounded_tdiff = (int)(0.5 + diff[i].tv_sec + (1.0e-6*diff[i].tv_usec));
|
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_comment(tctx, "rounded_tdiff=%d\n", rounded_tdiff);
|
||||||
torture_assert_ntstatus_ok(tctx, status,
|
torture_assert_ntstatus_ok(tctx, status,
|
||||||
talloc_asprintf(tctx, "TestSleep(%d) failed", i));
|
talloc_asprintf(tctx, "TestSleep(%d) failed", i));
|
||||||
@ -395,7 +395,7 @@ static bool test_timeout(struct torture_context *tctx,
|
|||||||
}
|
}
|
||||||
req->ignore_timeout = true;
|
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,
|
torture_assert_ntstatus_equal(tctx, status, NT_STATUS_IO_TIMEOUT,
|
||||||
"request should have timed out");
|
"request should have timed out");
|
||||||
|
|
||||||
@ -413,7 +413,7 @@ static bool test_timeout(struct torture_context *tctx,
|
|||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
req->ignore_timeout = true;
|
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,
|
torture_assert_ntstatus_equal(tctx, status, NT_STATUS_IO_TIMEOUT,
|
||||||
"request should have timed out");
|
"request should have timed out");
|
||||||
|
|
||||||
|
@ -752,7 +752,7 @@ static void lookupsids_cb(struct rpc_request *req)
|
|||||||
int *replies = (int *)req->async.private_data;
|
int *replies = (int *)req->async.private_data;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
|
||||||
status = dcerpc_ndr_request_recv(req);
|
status = dcerpc_lsa_LookupSids_recv(req);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
printf("lookupsids returned %s\n", nt_errstr(status));
|
printf("lookupsids returned %s\n", nt_errstr(status));
|
||||||
*replies = -1;
|
*replies = -1;
|
||||||
|
@ -2698,7 +2698,7 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<ASYNC_COUNT;i++) {
|
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, status, "netr_LogonGetDomainInfo_async");
|
||||||
torture_assert_ntstatus_ok(tctx, r.out.result, "netr_LogonGetDomainInfo_async");
|
torture_assert_ntstatus_ok(tctx, r.out.result, "netr_LogonGetDomainInfo_async");
|
||||||
|
@ -5897,7 +5897,7 @@ static bool test_EnumDomainUsers_async(struct dcerpc_pipe *p, struct torture_con
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<ASYNC_COUNT;i++) {
|
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)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
torture_warning(tctx, "EnumDomainUsers[%d] failed - %s\n",
|
torture_warning(tctx, "EnumDomainUsers[%d] failed - %s\n",
|
||||||
i, nt_errstr(status));
|
i, nt_errstr(status));
|
||||||
|
@ -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 = talloc_get_type(conn->s,
|
||||||
struct torture_schannel_bench);
|
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)) {
|
if (!NT_STATUS_IS_OK(s->error)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user