aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/coredump/stackdump_test.c
diff options
context:
space:
mode:
authorNam Cao <[email protected]>2025-08-11 07:49:57 +0000
committerChristian Brauner <[email protected]>2025-08-11 13:43:31 +0000
commit2319f9d0aa644eb9666c7be903078f50ecc2eb5b (patch)
tree093a10a0966b5d6251fdc5be280999278998ca61 /tools/testing/selftests/coredump/stackdump_test.c
parentfuse: keep inode->i_blkbits constant (diff)
downloadkernel-2319f9d0aa644eb9666c7be903078f50ecc2eb5b.tar.gz
kernel-2319f9d0aa644eb9666c7be903078f50ecc2eb5b.zip
selftests/coredump: Remove the read() that fails the test
Resolve a conflict between commit 6a68d28066b6 ("selftests/coredump: Fix "socket_detect_userspace_client" test failure") and commit 994dc26302ed ("selftests/coredump: fix build") The first commit adds a read() to wait for write() from another thread to finish. But the second commit removes the write(). Now that the two commits are in the same tree, the read() now gets EOF and the test fails. Remove this read() so that the test passes. Signed-off-by: Nam Cao <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/coredump/stackdump_test.c')
-rw-r--r--tools/testing/selftests/coredump/stackdump_test.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/testing/selftests/coredump/stackdump_test.c b/tools/testing/selftests/coredump/stackdump_test.c
index 5a5a7a5f7e1d..a4ac80bb1003 100644
--- a/tools/testing/selftests/coredump/stackdump_test.c
+++ b/tools/testing/selftests/coredump/stackdump_test.c
@@ -446,9 +446,6 @@ TEST_F(coredump, socket_detect_userspace_client)
if (info.coredump_mask & PIDFD_COREDUMPED)
goto out;
- if (read(fd_coredump, &c, 1) < 1)
- goto out;
-
exit_code = EXIT_SUCCESS;
out:
if (fd_peer_pidfd >= 0)