Commit 628a4885 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

test: fix error messages

Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 013b8494
...@@ -192,7 +192,7 @@ void test_init(int argc, char **argv) ...@@ -192,7 +192,7 @@ void test_init(int argc, char **argv)
waitpid(pid, &ret, 0); waitpid(pid, &ret, 0);
if (WIFEXITED(ret)) { if (WIFEXITED(ret)) {
pr_perror("Test exited with unexpectedly with code %d", WEXITSTATUS(ret)); pr_perror("Test exited unexpectedly with code %d", WEXITSTATUS(ret));
exit(0); exit(0);
} }
if (WIFSIGNALED(ret)) { if (WIFSIGNALED(ret)) {
...@@ -324,7 +324,7 @@ void test_init_ns(int argc, char **argv, unsigned long clone_flags, ...@@ -324,7 +324,7 @@ void test_init_ns(int argc, char **argv, unsigned long clone_flags,
waitpid(pid, &ret, 0); waitpid(pid, &ret, 0);
if (WIFEXITED(ret)) { if (WIFEXITED(ret)) {
pr_perror("Test exited with unexpectedly with code %d", WEXITSTATUS(ret)); pr_perror("Test exited unexpectedly with code %d", WEXITSTATUS(ret));
exit(0); exit(0);
} }
if (WIFSIGNALED(ret)) { if (WIFSIGNALED(ret)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment