From 628ff1bea3e167e2d45dffbffb3c4fffaa3d1916 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 29 Apr 2007 21:37:29 +0000 Subject: r22579: disable progress printing in the build-farm metze (This used to be commit 93089ad5e8b6e20c4fa92bf13b0137765aeac689) --- source4/torture/raw/composite.c | 24 ++++++++++++++++-------- source4/torture/raw/lockbench.c | 7 +++++-- source4/torture/raw/openbench.c | 8 +++++--- source4/torture/raw/oplock.c | 5 ++++- 4 files changed, 30 insertions(+), 14 deletions(-) (limited to 'source4/torture/raw') diff --git a/source4/torture/raw/composite.c b/source4/torture/raw/composite.c index 2dd079c4b0..b551af00b1 100644 --- a/source4/torture/raw/composite.c +++ b/source4/torture/raw/composite.c @@ -87,8 +87,10 @@ static BOOL test_loadfile(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("waiting for completion\n"); while (*count != num_ops) { event_loop_once(cli->transport->socket->event.ctx); - printf("count=%d\r", *count); - fflush(stdout); + if (lp_parm_bool(-1, "torture", "progress", true)) { + printf("count=%d\r", *count); + fflush(stdout); + } } printf("count=%d\n", *count); @@ -175,8 +177,10 @@ static BOOL test_fetchfile(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) while (*count != torture_numops) { event_loop_once(event_ctx); - printf("count=%d\r", *count); - fflush(stdout); + if (lp_parm_bool(-1, "torture", "progress", true)) { + printf("count=%d\r", *count); + fflush(stdout); + } } printf("count=%d\n", *count); @@ -293,8 +297,10 @@ static BOOL test_appendacl(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("waiting for completion\n"); while (*count != num_ops) { event_loop_once(event_ctx); - printf("count=%d\r", *count); - fflush(stdout); + if (lp_parm_bool(-1, "torture", "progress", true)) { + printf("count=%d\r", *count); + fflush(stdout); + } } printf("count=%d\n", *count); @@ -358,8 +364,10 @@ static BOOL test_fsinfo(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) while (*count < torture_numops) { event_loop_once(event_ctx); - printf("count=%d\r", *count); - fflush(stdout); + if (lp_parm_bool(-1, "torture", "progress", true)) { + printf("count=%d\r", *count); + fflush(stdout); + } } printf("count=%d\n", *count); diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c index 4dbefd5d9b..3d02e0f5c4 100644 --- a/source4/torture/raw/lockbench.c +++ b/source4/torture/raw/lockbench.c @@ -171,8 +171,11 @@ BOOL torture_bench_lock(struct torture_context *torture) for (i=0;i