selftests/coredump: Remove the read() that fails the test
authorNam Cao <namcao@linutronix.de>
Mon, 11 Aug 2025 07:49:57 +0000 (09:49 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 11 Aug 2025 13:43:31 +0000 (15:43 +0200)
commit2319f9d0aa644eb9666c7be903078f50ecc2eb5b
tree093a10a0966b5d6251fdc5be280999278998ca61
parent542ede096e48436dbd70869640c0d88180565933
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 <namcao@linutronix.de>
Link: https://lore.kernel.org/20250811074957.4079616-1-namcao@linutronix.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/coredump/stackdump_test.c