From 1b11f11b34910d80fd55fc47ae8003b51204b903 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 9 Jun 2005 08:12:20 +0000 Subject: r7426: add an option to disable progress output torture:progress=no metze (This used to be commit 820e5a1270d8bd308f03fc96161396fb4b95da61) --- source4/torture/local/iconv.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/local/iconv.c b/source4/torture/local/iconv.c index c42fa2ba0e..e9dc3e16f8 100644 --- a/source4/torture/local/iconv.c +++ b/source4/torture/local/iconv.c @@ -322,7 +322,9 @@ BOOL torture_local_iconv(void) } if (codepoint % 1000 == 0) { - printf("codepoint=%u \r", codepoint); + if (!lp_parm_bool(-1, "torture", "progress", True)) { + printf("codepoint=%u \r", codepoint); + } } ok = test_buffer(inbuf, size, "UTF-8"); @@ -332,7 +334,9 @@ BOOL torture_local_iconv(void) printf("Testing 5M random UTF-16LE sequences\n"); for (i=0;ok && i<500000;i++) { if (i % 1000 == 0) { - printf("i=%u \r", i); + if (!lp_parm_bool(-1, "torture", "progress", True)) { + printf("i=%u \r", i); + } } size = random() % 100; -- cgit