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 6not ok 5 state other side after close: expected POLLIN | POLLHUP; got POLLIN | POLLOUT | POLLHUP 7not ok 6 state other side after reading input: expected POLLHUP; got POLLIN | POLLOUT | 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 13not ok 12 state after second shutdown: expected POLLIN | POLLHUP; got POLLIN | POLLOUT | POLLHUP 14not ok 13 state after second shutdown: expected POLLHUP; got POLLIN | POLLHUP 15not ok 14 state after close: expected POLLHUP; got POLLIN | POLLOUT | POLLHUP | 8 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 | POLLOUT | POLLHUP 19not ok 18 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT; got POLLIN | POLLOUT | POLLHUP 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 22not ok 21 state other side after shutdown(SHUT_WR): expected POLLIN | POLLOUT | POLLRDHUP; got POLLIN | POLLOUT | POLLHUP | POLLRDHUP 23