]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/futex: Add newline to ksft_exit_fail_msg()
authorCarlos Llamas <cmllamas@google.com>
Wed, 15 Oct 2025 17:35:41 +0000 (17:35 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Nov 2025 13:39:36 +0000 (14:39 +0100)
This was missed in commit e5c04d0f3ea0 ("selftests/futex: Refactor
futex_wait with kselftest_harness.h") while replacing previous perror()
calls, which automatically append the newline character.

Fixes: e5c04d0f3ea0 ("selftests/futex: Refactor futex_wait with kselftest_harness.h")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251015173556.2899646-1-cmllamas@google.com
tools/testing/selftests/futex/functional/futex_wait.c

index 152ca46128866fe0702cddaaef3c7d9b465df9ac..4cd87f2a34221c46d4d6bc9de4b4bc22603f59c5 100644 (file)
@@ -108,14 +108,14 @@ TEST(file_backed)
        /* Testing a file backed shared memory */
        fd = open(SHM_PATH, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
        if (fd < 0)
-               ksft_exit_fail_msg("open");
+               ksft_exit_fail_msg("open\n");
 
        if (ftruncate(fd, sizeof(f_private)))
-               ksft_exit_fail_msg("ftruncate");
+               ksft_exit_fail_msg("ftruncate\n");
 
        shm = mmap(NULL, sizeof(f_private), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
        if (shm == MAP_FAILED)
-               ksft_exit_fail_msg("mmap");
+               ksft_exit_fail_msg("mmap\n");
 
        memcpy(shm, &f_private, sizeof(f_private));