test/defer: drop overflow hung test on IORING_FEAT_NODROP
We can't introduce drops anymore, so the test is failing.
@@ -208,9 +208,11 @@ static int test_dropped_hung(struct io_uring *ring)
int main(int argc, char *argv[])
{
struct io_uring ring, poll_ring, sqthread_ring;
+ struct io_uring_params p;
int ret;
- ret = io_uring_queue_init(1000, &ring, 0);
+ memset(&p, 0, sizeof(p));
+ ret = io_uring_queue_init_params(1000, &ring, &p);
if (ret) {
printf("ring setup failed\n");
return 1;
@@ -241,11 +243,13 @@ int main(int argc, char *argv[])
return ret;
}
+ if (!(p.features & IORING_FEAT_NODROP)) {
ret = test_overflow_hung(&ring);
if (ret) {
printf("test_overflow_hung failed\n");
return ret;
}
+ }
ret = test_dropped_hung(&ring);
if (ret) {
