Commit 088ebed
committed
Skip OIO transport from FileRegion drain-loop overshoot test
OioByteStreamChannel#doWriteFileRegion drives its drain loop with a
locally-tracked bytes-written counter and passes it as the transferTo
position, never consulting region.transferred() for termination. The
OvershootDetectingFileRegion fixture advances transferred() to count()
after writing only one byte -- exactly to exercise the overshoot path
on transports that do consult transferred() -- which violates OIO's
position invariant and surfaces as a spurious IOException on the OIO
permutation in CI.
Skip the OIO client via assumeFalse(cc instanceof OioSocketChannel),
mirroring the precedent in SocketShutdownOutputBySelfTest. The check
runs alongside the existing supportsCustomFileRegion gate so the
NIO/epoll/kqueue/io_uring permutations still cover the regression.1 parent e28834a commit 088ebed
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
218 | 229 | | |
219 | 230 | | |
220 | 231 | | |
| |||
0 commit comments