| 307 | } |
| 308 | |
| 309 | static int fail_tee_nonpipe(struct io_uring *ring, struct test_ctx *ctx) |
| 310 | { |
| 311 | int ret; |
| 312 | |
| 313 | ret = do_tee(ring, ctx->fd_in, ctx->pipe1[1], BUF_SIZE); |
| 314 | if (ret != -ESPIPE && ret != -EINVAL) |
| 315 | return ret; |
| 316 | |
| 317 | return 0; |
| 318 | } |
| 319 | |
| 320 | static int fail_tee_offset(struct io_uring *ring, struct test_ctx *ctx) |
| 321 | { |