Skip to content

Commit

Permalink
DEBUG: use new exec_child(_ex) interface in tests
Browse files Browse the repository at this point in the history
Resolves: #4667

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
  • Loading branch information
sumit-bose authored and pbrezina committed Jun 9, 2020
1 parent 4c4b62b commit e58853f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/cmocka/test_child_common.c
Expand Up @@ -97,7 +97,7 @@ void test_exec_child(void **state)
exec_child(child_tctx,
child_tctx->pipefd_to_child,
child_tctx->pipefd_from_child,
CHILD_DIR"/"TEST_BIN, 2);
CHILD_DIR"/"TEST_BIN, NULL);
} else {
do {
errno = 0;
Expand Down Expand Up @@ -168,7 +168,7 @@ static void extra_args_test(struct child_test_ctx *child_tctx,
exec_child_ex(child_tctx,
child_tctx->pipefd_to_child,
child_tctx->pipefd_from_child,
CHILD_DIR"/"TEST_BIN, 2, extra_args,
CHILD_DIR"/"TEST_BIN, NULL, extra_args,
extra_args_only,
STDIN_FILENO, STDOUT_FILENO);
} else {
Expand Down Expand Up @@ -291,7 +291,7 @@ void test_exec_child_handler(void **state)
exec_child(child_tctx,
child_tctx->pipefd_to_child,
child_tctx->pipefd_from_child,
CHILD_DIR"/"TEST_BIN, 2);
CHILD_DIR"/"TEST_BIN, NULL);
}

ret = child_handler_setup(child_tctx->test_ctx->ev, child_pid,
Expand Down Expand Up @@ -341,7 +341,7 @@ void test_exec_child_echo(void **state)
exec_child_ex(child_tctx,
child_tctx->pipefd_to_child,
child_tctx->pipefd_from_child,
CHILD_DIR"/"TEST_BIN, 2, NULL, false,
CHILD_DIR"/"TEST_BIN, NULL, NULL, false,
STDIN_FILENO, 3);
}

Expand Down Expand Up @@ -474,7 +474,7 @@ void test_sss_child(void **state)
exec_child(child_tctx,
child_tctx->pipefd_to_child,
child_tctx->pipefd_from_child,
CHILD_DIR"/"TEST_BIN, 2);
CHILD_DIR"/"TEST_BIN, NULL);
}

ret = sss_child_register(child_tctx, sc_ctx,
Expand Down

0 comments on commit e58853f

Please sign in to comment.