summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huawei.com>2020-04-18 11:34:46 +0800
committerDmitry V. Levin <ldv@altlinux.org>2020-04-18 13:47:17 +0000
commit9d4956bfc4ab208d4f8ba1bcf762a131d5d08bfa (patch)
treed2ae0959607faeec177ab57126e022340f05f62d
parent79da502b06aa68df561f9f961311116743b5461d (diff)
downloadstrace-9d4956bfc4ab208d4f8ba1bcf762a131d5d08bfa.tar.gz
tests: correct error message in io_uring_register test
* tests/io_uring_register.c (main): If path_full failed to open, print its name instead of mistakenly used path_null.
-rw-r--r--tests/io_uring_register.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/io_uring_register.c b/tests/io_uring_register.c
index 6dc7b22ba..1f5e8c889 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));