summaryrefslogtreecommitdiff
path: root/test/timeout.c
AgeCommit message (Collapse)Author
2019-09-20Test support for timed waittimeoutJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-20Add TIMEOUT supportJens Axboe
Add support for the current TIMEOUT variant. This allows passing in a timeout and event count, first of which will trigger the completion of the timeout command. If the timeout is hit, the command completes with cqe->res == -ETIME. If the asked number of events complete first, the command completes with cqe->res == 0. test/timeout.c tests a variety of timeout conditions. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-19Remove TIMEOUT codeJens Axboe
We'll rework it for the final version, kill the early version test case and liburing addition. This reverts commits: efb39e105afdb4dd5c0f1e964720cfa3cdcceb18 e4269d2c10586c03786df24d6382da99a956f03c 4652762d5be96e08a0ff8194de1e6f6d8127cee5 f102231b0fdbfe8587efda0b24c79a69ee4d8ba7 Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-17test/timeout: check if we always get a wakeup from timeoutJens Axboe
We need a wakeup even if we don't hit the desired number of available commands if a timeout has triggered. Add a test case for that. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-17test/timeout: include some notion of verifying length of timeoutJens Axboe
In my testing, we're always right on 1000 msec, but allow some slack and just judge it good if we're within +- 50%. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-17Add basic IORING_OP_TIMEOUT test caseJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>