r24741: More use of the torture API.
[kai/samba.git] / source4 / torture / raw / write.c
index 75d275fc3c54e21ad71dfe63b3e858e85652cc30..b704a19ed65c37b99672e25586611147478e6e8b 100644 (file)
@@ -237,9 +237,9 @@ static bool test_writex(struct torture_context *tctx,
        union smb_fileinfo finfo;
        int max_bits=63;
 
-       if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
+       if (!torture_setting_bool(tctx, "dangerous", false)) {
                max_bits=33;
-               printf("dangerous not set - limiting range of test to 2^%d\n", max_bits);
+               torture_comment(tctx, "dangerous not set - limiting range of test to 2^%d\n", max_bits);
        }
 
        buf = talloc_zero_size(tctx, maxsize);