]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kselftest/mm: clarify errors for pipe()
authorMark Brown <broonie@kernel.org>
Tue, 10 Jun 2025 14:13:54 +0000 (15:13 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:04 +0000 (22:42 -0700)
Patch series "selftests/mm: Tweaks to the cow test".

A collection of non-functional updates from David Hildenbrand's review.

This patch (of 4):

Specify that errors reported from pipe() failures are the result of
failures.

Link: https://lkml.kernel.org/r/20250610-selftest-mm-cow-tweaks-v1-0-43cd7457500f@kernel.org
Link: https://lkml.kernel.org/r/20250610-selftest-mm-cow-tweaks-v1-1-43cd7457500f@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Suggested-by: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/cow.c

index dbbcc5eb3dce51e182f8c9f94cb79e243ee9d90e..0adc0ab142c12d56d16c7a7e3603dd442eb0af82 100644 (file)
@@ -113,11 +113,11 @@ struct comm_pipes {
 static int setup_comm_pipes(struct comm_pipes *comm_pipes)
 {
        if (pipe(comm_pipes->child_ready) < 0) {
-               ksft_perror("pipe()");
+               ksft_perror("pipe() failed");
                return -errno;
        }
        if (pipe(comm_pipes->parent_ready) < 0) {
-               ksft_perror("pipe()");
+               ksft_perror("pipe() failed");
                close(comm_pipes->child_ready[0]);
                close(comm_pipes->child_ready[1]);
                return -errno;