Skip to contentSkip to conversation

selftests/exec: Fix grammar in an error message.

PATCH In review Chang Yu 2 participants 2 messages Jul 24, 2024 – Jul 31, 2024

Subsystems (3)
lore
Share & tools
lore

Chang Yu

author
#0 lore raw

PATCH 1/1 selftests/exec: Fix grammar in an error message.

Replace "not ... nor" in the error message with "neither ... nor".

---
 tools/testing/selftests/exec/execveat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/exec/execveat.c +1 -1
index 6418ded40bdd..071e03532cba 100644
@@ -117,7 +117,7 @@ static int check_execveat_invoked_rc(int fd, const char *path, int flags,
 	}
 	if ((WEXITSTATUS(status) != expected_rc) &&
 	    (WEXITSTATUS(status) != expected_rc2)) {
-		ksft_print_msg("child %d exited with %d not %d nor %d\n",
+		ksft_print_msg("child %d exited with %d neither %d nor %d\n",
 			       child, WEXITSTATUS(status), expected_rc,
 			       expected_rc2);
 		ksft_test_result_fail("%s\n", test_name);
Signature · 1 line
2.45.2
maintainer
#1 lore raw
Quoted 12 lines · Chang Yu

Replace "not ... nor" in the error message with "neither ... nor".

---
  tools/testing/selftests/exec/execveat.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/exec/execveat.c +0 -0
index 6418ded40bdd..071e03532cba 100644

tools/testing/selftests/exec/execveat.c static int check_execveat_invoked_rc(int fd, const char *path, int flags, · line 123

Quoted 8 lines
tools/testing/selftests/exec/execveat.c +1 -1
@@ -117,7 +117,7 @@ static int check_execveat_invoked_rc(int fd, const char *path, int flags,
  	}
  	if ((WEXITSTATUS(status) != expected_rc) &&
  	    (WEXITSTATUS(status) != expected_rc2)) {
-		ksft_print_msg("child %d exited with %d not %d nor %d\n",
+		ksft_print_msg("child %d exited with %d neither %d nor %d\n",
  			       child, WEXITSTATUS(status), expected_rc,
  			       expected_rc2);
  		ksft_test_result_fail("%s\n", test_name);

Applied to linux-kselftest next for Linux 6.12-rc1

thanks,
-- Shuah