summaryrefslogtreecommitdiff
path: root/source4/torture/local
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-09 08:12:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:52 -0500
commit1b11f11b34910d80fd55fc47ae8003b51204b903 (patch)
treeb59e5c066da4f41b2d00180aaba00851a534892c /source4/torture/local
parent1b3471ed0cf1f1ec2cdc8a116b1da93f783a47c6 (diff)
downloadsamba-1b11f11b34910d80fd55fc47ae8003b51204b903.tar.gz
samba-1b11f11b34910d80fd55fc47ae8003b51204b903.tar.bz2
samba-1b11f11b34910d80fd55fc47ae8003b51204b903.zip
r7426: add an option to disable progress output
torture:progress=no metze (This used to be commit 820e5a1270d8bd308f03fc96161396fb4b95da61)
Diffstat (limited to 'source4/torture/local')
-rw-r--r--source4/torture/local/iconv.c8
1 files changed, 6 insertions, 2 deletions
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;