From ef9c4b40f7b42ebfd555c2e0cd0c30c7308a2300 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 4 Jun 2019 10:46:51 -0600 Subject: test/io_uring_register: don't test buffer size if too large Signed-off-by: Jens Axboe --- test/io_uring_register.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/io_uring_register.c b/test/io_uring_register.c index 7adf563..070d0ff 100644 --- a/test/io_uring_register.c +++ b/test/io_uring_register.c @@ -231,6 +231,10 @@ test_memlock_exceeded(int fd) void *buf; struct iovec iov; + /* if limit is larger than 2gb, just skip this test */ + if (mlock_limit >= 2 * 1024 * 1024 * 1024ULL) + return 0; + iov.iov_len = mlock_limit * 2; buf = malloc(iov.iov_len); assert(buf); -- cgit