diff mbox series

selftests/exec: Fix grammar in an error message.

Message ID ZqCBSPFfMeghhRGQ@gmail.com (mailing list archive)
State New
Headers show
Series selftests/exec: Fix grammar in an error message. | expand

Commit Message

Chang Yu July 24, 2024, 4:21 a.m. UTC
Replace "not ... nor" in the error message with "neither ... nor".

Signed-off-by: Chang Yu <marcus.yu.56@gmail.com>
---
 tools/testing/selftests/exec/execveat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Shuah Khan July 31, 2024, 5:44 p.m. UTC | #1
On 7/23/24 22:21, Chang Yu wrote:
> Replace "not ... nor" in the error message with "neither ... nor".
> 
> Signed-off-by: Chang Yu <marcus.yu.56@gmail.com>
> ---
>   tools/testing/selftests/exec/execveat.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c
> index 6418ded40bdd..071e03532cba 100644
> --- a/tools/testing/selftests/exec/execveat.c
> +++ b/tools/testing/selftests/exec/execveat.c
> @@ -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
diff mbox series

Patch

diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c
index 6418ded40bdd..071e03532cba 100644
--- a/tools/testing/selftests/exec/execveat.c
+++ b/tools/testing/selftests/exec/execveat.c
@@ -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);