Skip to content
Snippets Groups Projects
Commit 7c434166 authored by Boris Stepanenko's avatar Boris Stepanenko Committed by Vladimir Davydov
Browse files

test: fix execpl call in unit/coio test

According to man 3 exec: "The first argument, by convention, should point
to the filename associated with the file being executed.". Using empty
string as the first argument while calling `true` program, provided by
coreutils led to error message being printed to stderr, which failed the
test.

This patch passes 'true' as the first argument.

Closes #7452.

NO_DOC=test
NO_CHANGELOG=test
parent d7da59b4
No related branches found
Tags 1.7.1
Loading
......@@ -182,7 +182,7 @@ test_waitpid_f(va_list ap)
pid_t pid = fork();
if (pid == 0) {
/* Child process. */
execlp("true", "", NULL);
execlp("true", "true", NULL);
}
fail_if(pid == -1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment