11..18 2ok 1 state initial 0: expected POLLOUT; got POLLOUT 3ok 2 state initial 1: expected POLLOUT; got POLLOUT 4ok 3 state after large write: expected 0; got 0 5ok 4 state other side after large write: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 6ok 5 state other side after close: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 7not ok 6 state other side after reading input: expected POLLHUP; got POLLIN | POLLHUP 8ok 7 state after shutdown(SHUT_WR): expected POLLOUT; got POLLOUT 9ok 8 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 10ok 9 state other side after reading EOF: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 11ok 10 state after data from other side: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 12ok 11 state after writing: expected POLLIN; got POLLIN 13ok 12 state after second shutdown: expected POLLIN | POLLHUP; got POLLIN | POLLHUP 14not ok 13 state after second shutdown: expected POLLHUP; got POLLIN | POLLHUP 15not ok 14 state after close: expected POLLHUP; got POLLIN | POLLHUP 16ok 15 state after shutdown(SHUT_RD): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 17ok 16 state other side after shutdown(SHUT_RD): expected POLLOUT; got POLLOUT 18not ok 17 state after shutdown(SHUT_WR): expected POLLHUP; got POLLIN | POLLHUP 19ok 18 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT; got POLLIN | POLLOUT 20ok 19 state other side after shutdown(SHUT_RD): expected POLLOUT; got POLLOUT 21ok 20 state other side after write: expected POLLIN | POLLOUT; got POLLIN | POLLOUT 22ok 21 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT | POLLRDHUP; got POLLIN | POLLOUT | POLLRDHUP 23