git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r19392: Use torture_setting_* rather than lp_parm_* where possible.
[sfrench/samba-autobuild/.git]
/
source4
/
torture
/
local
/
iconv.c
diff --git
a/source4/torture/local/iconv.c
b/source4/torture/local/iconv.c
index 28834a668000d498a6f3f4ed2bad19f3afe164a9..e41e40dc8df00f64093c7e5ecbb9f1c5c72fcbfd 100644
(file)
--- a/
source4/torture/local/iconv.c
+++ b/
source4/torture/local/iconv.c
@@
-304,8
+304,8
@@
static bool test_first_1m(struct torture_context *tctx)
}
if (codepoint % 1000 == 0) {
}
if (codepoint % 1000 == 0) {
- if (!
lp_parm_bool(-1, "torture"
, "progress", True)) {
-
printf(
"codepoint=%u \r", codepoint);
+ if (!
torture_setting_bool(tctx
, "progress", True)) {
+
torture_comment(tctx,
"codepoint=%u \r", codepoint);
}
}
}
}
@@
-324,7
+324,7
@@
static bool test_random_5m(struct torture_context *tctx)
unsigned int c;
if (i % 1000 == 0) {
unsigned int c;
if (i % 1000 == 0) {
- if (!
lp_parm_bool(-1, "torture", "progress", T
rue)) {
+ if (!
torture_setting_bool(tctx, "progress", t
rue)) {
torture_comment(tctx, "i=%u \r", i);
}
}
torture_comment(tctx, "i=%u \r", i);
}
}