test/register-restrictions: fix rings_not_disabled test
Recently changes in io_uring uniformed the returned error (EBADFD)
when the ring state (enabled/disabled) is not the expected one.
Let's check that io_uring_register_restrictions() returns EBADFD
if the ring is not disabled.
@@ -524,7 +524,7 @@ static int test_restrictions_rings_not_disabled(void)
res[0].sqe_op = IORING_OP_WRITEV;
ret = io_uring_register_restrictions(&ring, res, 1);
- if (ret != -EINVAL) {
+ if (ret != -EBADFD) {
fprintf(stderr, "io_uring_register_restrictions ret: %d\n",
ret);
return TEST_FAILED;
