]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests/pidfd_test: Remove the erroneous ','
authorZhao Gongyi <zhaogongyi@huawei.com>
Tue, 1 Nov 2022 03:56:02 +0000 (11:56 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 2 Nov 2022 09:09:57 +0000 (03:09 -0600)
Remove the erroneous ',', otherwise it might result in wrong output
and report:
 ...
 Bail out! (errno %d)
  test: Unexpected epoll_wait result (c=4208480, events=2)
 ...

Fixes: 740378dc7834 ("pidfd: add polling selftests")
Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/pidfd/pidfd_test.c

index d36654265b7a50366510d17bc0771dc236eb66bd..e2dd4ed849846216f15c70a996cb2cdc160f210a 100644 (file)
@@ -413,7 +413,7 @@ static void poll_pidfd(const char *test_name, int pidfd)
 
        c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000);
        if (c != 1 || !(events[0].events & EPOLLIN))
-               ksft_exit_fail_msg("%s test: Unexpected epoll_wait result (c=%d, events=%x) ",
+               ksft_exit_fail_msg("%s test: Unexpected epoll_wait result (c=%d, events=%x) "
                                   "(errno %d)\n",
                                   test_name, c, events[0].events, errno);