17 Commits

Author SHA1 Message Date
ohci1 4b8f3098a5 update configure info for 2.14
Co-authored-by: Pavel Begunkov<asml.silence@gmail.com>
Co-authored-by: Guillem Jover<guillem@hadrons.org>
Co-authored-by: Jens Axboe<axboe@kernel.dk>
Co-authored-by: Khem Raj<raj.khem@gmail.com>
Co-authored-by: Michael de Lang<kingoipo@gmail.com>
Co-authored-by: David Disseldorp<ddiss@suse.de>
Co-authored-by: Ming Lei<ming.lei@redhat.com>
2026-04-24 09:24:13 +08:00
Eli Schwartz 4475e75034 tests: more work on updating exit codes to use enum-based status reporting
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Link: https://lore.kernel.org/r/20220706034059.2817423-4-eschwartz93@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-06 06:44:52 -06:00
Mahdi Rakhshandehroo 8027807663 Fix warnings/errors when compiling on Alpine Linux
Silences the following:

* Error due to no definition for `mode_t` in `liburing.h`

* Warning due to use of non-portable `#include <sys/poll.h>` and `#include <sys/signal.h>`

* Warning due to incorrect `printf` format specifier in `test/io_uring_register.c`

* Error due to missing declaration for `strcpy` in `test/sendmsg_fs_cve.c`

* Error due to missing declaration for `strerror` in `test/shutdown.c`

Signed-off-by: Mahdi Rakhshandehroo <mahdi.rakhshandehroo@gmail.com>
2022-02-19 22:44:14 -08:00
Pavel Begunkov ee8058c009 tests: fail early invalid linked setups
We're going to fail links with invalid timeout combinations early. E.g.
op1 -> link timeout -> link timeout

Update tests to handle it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d2576c13100bacc00467c9ccfaedca1e71117e97.1629020550.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-08-15 09:08:00 -06:00
Pavel Begunkov 15a241286a tests: close pipes in link-timeout
Don't forget to close pipe fds after link-timeout tests

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/02771d9c5820fa0fa2fc87f697f0f232b9b23a0d.1629020550.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-08-15 09:08:00 -06:00
Pavel Begunkov df154c5d13 test/link-timeout: close pipes after yourself
Close pipe fds when we exit test_single_link_timeout().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-02-11 16:43:45 -07:00
Ryan Sharpelletti c9a25f4b36 Changes format string from %lld to %PRIu64 in several tests.
6 liburing tests failed to build on powerpc due to a 'long' versus
'long long' mismatch. Changing the identifer from %lld to %PRIu64
and casting the value to uint64_t fixes this.
2020-11-17 20:56:40 +00:00
Jens Axboe 6c32e92bb0 test: add potential argument, ignore if unused
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-05-19 17:36:19 -06:00
Jens Axboe a4addb3657 test/link-timeout: FASTPOLL kernels can cancel successfully
We expect -EALREADY since an async worker was previously holding this
request, but for kernels with FASTPOLL (5.7+), we can successfully
cancel from the timeout. Allow -ETIME as well for the return value of
the linked timeout.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-04-30 10:21:03 -06:00
Jens Axboe 0f6c68999f test/link-timeout: accept -ECANCELED for bad address write as well
We just check for -EFAULT, but -ECANCELED is also OK and will happen
on later kernels since we check earlier there for prep and defer.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-03-14 17:17:01 -06:00
Jens Axboe e502435779 Add SPDX license identifiers
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-11 20:34:12 -07:00
Jens Axboe 790d285bc9 test/link-timeout: update for allowed link timeouts
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-12-04 11:06:56 -07:00
Jens Axboe 9f9929ef44 test/link-timeout: add a few more test cases
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-20 08:33:52 -07:00
Pavel Begunkov 76cf6dce3e linked-timeout: check invalid linked timeouts
Check miscounting references for the following case:
REQ(fail) -> LINKED_TIMEOUT -> LINKED_TIMEOUT

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-19 15:29:50 -07:00
Jens Axboe 0cbc36abf2 test/link-timeout: add more chained linked timeout cases
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-14 22:10:40 -07:00
Jens Axboe 16296c5fd1 test/link-timeout: add short linked timeout test case
Catches the -ENOENT issue we had with timers with very short timeouts.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-10 23:43:04 -07:00
Jens Axboe bc1bd5e97e Add IORING_OP_LINK_TIMEOUT test cases
Tries to cover a wide variety of things that could go wrong.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-05 14:02:23 -07:00