mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
selftests/coredump: Remove the read() that fails the test
Resolve a conflict between commit6a68d28066("selftests/coredump: Fix "socket_detect_userspace_client" test failure") and commit994dc26302("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 <namcao@linutronix.de> Link: https://lore.kernel.org/20250811074957.4079616-1-namcao@linutronix.de Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
542ede096e
commit
2319f9d0aa
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user