Skip to contentSkip to conversation

selftests/futex: add newline to ksft_exit_fail_msg()

PATCH Applied Carlos Llamas 2 participants 2 messages Oct 15, 2025 – Nov 14, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/futex: add newline to ksft_exit_fail_msg()

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")
---
 tools/testing/selftests/futex/functional/futex_wait.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/testing/selftests/futex/functional/futex_wait.c +3 -3
index 152ca4612886..4cd87f2a3422 100644
@@ -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));
 
Signature · 1 line
2.51.0.869.ge66316f041-goog
merge bot Applied
#1 lore raw

[tip: locking/futex] selftests/futex: Add newline to ksft_exit_fail_msg()

The following commit has been merged into the locking/futex branch of tip:

The following commit has been merged into the locking/futex branch of tip:

Commit-ID:     9407d138b8d5eff1cabceb4b3176f03191871479
Gitweb:        https://git.kernel.org/tip/9407d138b8d5eff1cabceb4b3176f03191871479
Author:        Carlos Llamas <[email protected]>
AuthorDate:    Wed, 15 Oct 2025 17:35:41 
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Fri, 14 Nov 2025 14:39:36 +01:00

selftests/futex: Add newline to ksft_exit_fail_msg()

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")
---
 tools/testing/selftests/futex/functional/futex_wait.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/testing/selftests/futex/functional/futex_wait.c +3 -3
index 152ca46..4cd87f2 100644
@@ -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));