4 Commits

Author SHA1 Message Date
Eli Schwartz dd35f16b1d tests: emit a skip exit code if invoked with additional argv
These are skipped because they are not applicable if files/devices are
provided for a special test run. Note this in the return status.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
2022-06-28 10:37:33 -04:00
Eli Schwartz 3467e7ac6d tests: migrate some tests to use enum-based exit codes
For maintainability and clarity, eschew the use of integer literals in
reporting test statuses. Instead, use a helper enum which contains
various values from the GNU exitcode protocol. Returning 0 or 1 is
obvious, and in the previous commit the ability to read "skip" (77) was
implemented. The final exit status is 99, which indicates some kind of
error in running the test itself.

A partial migration of existing pass/fail values in test sources is
included.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
2022-06-28 10:37:33 -04:00
Jens Axboe 6d8210557a test/drop-submit: set invalid ioprio to force request to be dropped
We need it dropped at prep time, don't assume that read prep will
validate the fd.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-03-30 11:09:40 -06:00
Jens Axboe 6d5f856d30 test/drop-submit: test function of IORING_SETUP_SUBMIT_ALL flag
If the ring is created with this flag, then we expect submissions to
continue even if we hit an error in a batch. Check if that is the case
or not.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-03-10 17:30:18 -07:00