lib/util: adjust loglevel in tfork test with samba_runcmd_send()
authorRalph Boehme <slow@samba.org>
Thu, 18 May 2017 10:02:22 +0000 (12:02 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 3 Jul 2017 17:59:07 +0000 (19:59 +0200)
No change in behaviour, this just ensures stdout and stderror are
logged with log level 0.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/util/tests/tfork.c

index 2f140dd6ef0dc735cffaff063233329b8313ae9b..2bb941d8664d3a3694a75fbc7d79ff76baef2376 100644 (file)
@@ -103,7 +103,7 @@ static bool test_tfork_cmd_send(struct torture_context *tctx)
        torture_assert_goto(tctx, cmd[0] != NULL, ok, done,
                            "talloc_asprintf failed\n");
 
-       req = samba_runcmd_send(tctx, ev, timeval_zero(), 1, 0,
+       req = samba_runcmd_send(tctx, ev, timeval_zero(), 0, 0,
                                cmd, "foo", NULL);
        torture_assert_goto(tctx, req != NULL, ok, done,
                            "samba_runcmd_send failed\n");