[PATCH] tests: correct error message

Kemeng Shi shikemeng at huawei.com
Sat Apr 18 03:34:46 UTC 2020


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));
--
2.19.1



More information about the Strace-devel mailing list