summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/echo.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-01 23:01:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:24 -0500
commitc125a7c5a7aee1b0506ab4eddbb4868ca8411fba (patch)
treec7ba922440981ed7ca8c9f1975584a5dafe1b076 /source4/torture/rpc/echo.c
parent132ddb1f4669eced6b9f2ef81bc141143ae7e6ed (diff)
downloadsamba-c125a7c5a7aee1b0506ab4eddbb4868ca8411fba.tar.gz
samba-c125a7c5a7aee1b0506ab4eddbb4868ca8411fba.tar.bz2
samba-c125a7c5a7aee1b0506ab4eddbb4868ca8411fba.zip
r24872: Use torture API a bit more
(This used to be commit a71355dfc933d4273d81e7b05a28197ca86e0cc6)
Diffstat (limited to 'source4/torture/rpc/echo.c')
-rw-r--r--source4/torture/rpc/echo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index 814c8e31b9..52f6d76d0e 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -240,7 +240,7 @@ static bool test_sleep(struct torture_context *tctx,
if (torture_setting_bool(tctx, "quick", false)) {
torture_skip(tctx, "TestSleep disabled - use \"torture:quick=no\" to enable\n");
}
- torture_comment(tctx, "Testing TestSleep - use \"torture:quick=no\" to disable\n");
+ torture_comment(tctx, "Testing TestSleep - use \"torture:quick=yes\" to disable\n");
for (i=0;i<ASYNC_COUNT;i++) {
done[i] = False;
@@ -264,7 +264,7 @@ static bool test_sleep(struct torture_context *tctx,
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]);
- printf("rounded_tdiff=%d\n", rounded_tdiff);
+ torture_comment(tctx, "rounded_tdiff=%d\n", rounded_tdiff);
torture_assert_ntstatus_ok(tctx, status,
talloc_asprintf(tctx, "TestSleep(%d) failed", i));
torture_assert(tctx, r[i].out.result == r[i].in.seconds,
@@ -287,7 +287,7 @@ static bool test_sleep(struct torture_context *tctx,
}
}
}
- printf("\n");
+ torture_comment(tctx, "\n");
return true;
}