test-runner: add debug info for cmd being executed

This commit is contained in:
Denis Kenzior 2016-06-09 09:55:33 -05:00
parent d9848730ed
commit b3abd2f7ca
1 changed files with 5 additions and 0 deletions

View File

@ -326,10 +326,15 @@ static pid_t execute_program(char *argv[], bool wait)
{
int status;
pid_t pid, child_pid;
char *str;
if (!argv[0])
return -1;
str = l_strjoinv(argv, ' ');
l_debug("Executing: %s", str);
l_free(str);
child_pid = fork();
if (child_pid < 0) {
l_error("Failed to fork new process");