Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/pidfd_test: Remove the erroneous ','

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>

authored by

Zhao Gongyi and committed by
Shuah Khan
89c1017a 3d982441

+1 -1
+1 -1
tools/testing/selftests/pidfd/pidfd_test.c
··· 413 413 414 414 c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000); 415 415 if (c != 1 || !(events[0].events & EPOLLIN)) 416 - ksft_exit_fail_msg("%s test: Unexpected epoll_wait result (c=%d, events=%x) ", 416 + ksft_exit_fail_msg("%s test: Unexpected epoll_wait result (c=%d, events=%x) " 417 417 "(errno %d)\n", 418 418 test_name, c, events[0].events, errno); 419 419