This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=c0f8ed292fc2a2293ee2d449323783e0a406cefc commit c0f8ed292fc2a2293ee2d449323783e0a406cefc Author: Sören Tempel <[email protected]> AuthorDate: Thu Aug 27 21:43:40 2020 +0200 test: Fix test_command_exec program invocation From exec(3): The argument arg0 should point to a filename string that is associated with the process being started by one of the exec functions. Unfortunately, this test sets arg0 to the string "arg 0" this causes the busybox multicall binary on Alpine Linux to assume that the applet "arg 0" (instead of true) should be executed. However, as such an applet does not exist, the tests fails. This commit fixes the failing test by setting arg0 correctly (as other parts of the dpkg codebase using the command API do too). Signed-off-by: Guillem Jover <[email protected]> --- lib/dpkg/t/t-command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dpkg/t/t-command.c b/lib/dpkg/t/t-command.c index 4c360064c..33e002e12 100644 --- a/lib/dpkg/t/t-command.c +++ b/lib/dpkg/t/t-command.c @@ -170,6 +170,7 @@ test_command_exec(void) command_init(&cmd, "true", "exec test"); + command_add_arg(&cmd, "true"); command_add_arg(&cmd, "arg 0"); command_add_arg(&cmd, "arg 1"); -- Dpkg.Org's dpkg

