[PATCH] tests: correct error message

Dmitry V. Levin ldv at altlinux.org
Sat Apr 18 23:53:09 UTC 2020


On Sat, Apr 18, 2020 at 11:34:46AM +0800, Kemeng Shi wrote:
> io_uring_register:main prints open path_null failed while open path_full
> failed actually
> ---
>  tests/io_uring_register.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/io_uring_register.c b/tests/io_uring_register.c
> index 260187c7..17a529d7 100644
> --- a/tests/io_uring_register.c
> +++ b/tests/io_uring_register.c
> @@ -86,7 +86,7 @@ main(void)
> 
>         int fd_full = open(path_full, O_RDONLY);
>         if (fd_full < 0)
> -               perror_msg_and_fail("open: %s", path_null);
> +               perror_msg_and_fail("open: %s", path_full);
> 
>         int fds[] = { fd_full, fd_null };
>         const int *arg_fds = tail_memdup(fds, sizeof(fds));

Thanks.  The patch was mangled somewhere, all tabs were replaced
by spaces, but it was trivial enough so I applied it anyway.


-- 
ldv


More information about the Strace-devel mailing list