Lines Matching full:failed
22 let temp_dir = tempdir().expect("failed to create tempdir"); in unix_seqpacket_listener_path()
25 UnixSeqpacketListener::bind(&socket_path).expect("failed to create UnixSeqpacketListener"), in unix_seqpacket_listener_path()
27 let listener_path = listener.path().expect("failed to get socket listener path"); in unix_seqpacket_listener_path()
33 let temp_dir = tempdir().expect("failed to create tempdir"); in unix_seqpacket_listener_from_fd()
36 UnixSeqpacketListener::bind(&socket_path).expect("failed to create UnixSeqpacketListener"), in unix_seqpacket_listener_from_fd()
44 .expect("failed to create dup UnixSeqpacketListener") in unix_seqpacket_listener_from_fd()
49 let s1 = UnixSeqpacket::connect(socket_path.as_path()).expect("UnixSeqpacket::connect failed"); in unix_seqpacket_listener_from_fd()
59 let temp_dir = tempdir().expect("failed to create tempdir"); in unix_seqpacket_path_exists_pass()
62 UnixSeqpacketListener::bind(&socket_path).expect("failed to create UnixSeqpacketListener"), in unix_seqpacket_path_exists_pass()
65 UnixSeqpacket::connect(socket_path.as_path()).expect("UnixSeqpacket::connect failed"); in unix_seqpacket_path_exists_pass()
70 let temp_dir = tempdir().expect("failed to create tempdir"); in unix_seqpacket_path_listener_accept_with_timeout()
73 UnixSeqpacketListener::bind(&socket_path).expect("failed to create UnixSeqpacketListener"), in unix_seqpacket_path_listener_accept_with_timeout()
83 .unwrap_or_else(|_| panic!("UnixSeqpacket::connect {:?} failed", d)); in unix_seqpacket_path_listener_accept_with_timeout()
87 .unwrap_or_else(|_| panic!("UnixSeqpacket::accept {:?} failed", d)); in unix_seqpacket_path_listener_accept_with_timeout()
91 s2.send(data2).expect("failed to send data2"); in unix_seqpacket_path_listener_accept_with_timeout()
92 s1.send(data1).expect("failed to send data1"); in unix_seqpacket_path_listener_accept_with_timeout()
94 s2.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_path_listener_accept_with_timeout()
96 s1.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_path_listener_accept_with_timeout()
103 let temp_dir = tempdir().expect("failed to create tempdir"); in unix_seqpacket_path_listener_accept()
106 UnixSeqpacketListener::bind(&socket_path).expect("failed to create UnixSeqpacketListener"), in unix_seqpacket_path_listener_accept()
108 let s1 = UnixSeqpacket::connect(socket_path.as_path()).expect("UnixSeqpacket::connect failed"); in unix_seqpacket_path_listener_accept()
110 let s2 = listener.accept().expect("UnixSeqpacket::accept failed"); in unix_seqpacket_path_listener_accept()
114 s2.send(data2).expect("failed to send data2"); in unix_seqpacket_path_listener_accept()
115 s1.send(data1).expect("failed to send data1"); in unix_seqpacket_path_listener_accept()
117 s2.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_path_listener_accept()
119 s1.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_path_listener_accept()
125 let (s1, _s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_zero_timeout()
133 let (s1, _s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_read_timeout()
135 .expect("failed to set read timeout for socket"); in unix_seqpacket_read_timeout()
141 let (s1, _s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_write_timeout()
143 .expect("failed to set write timeout for socket"); in unix_seqpacket_write_timeout()
148 let (s1, s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_send_recv()
151 s2.send(data2).expect("failed to send data2"); in unix_seqpacket_send_recv()
152 s1.send(data1).expect("failed to send data1"); in unix_seqpacket_send_recv()
154 s2.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_send_recv()
156 s1.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_send_recv()
162 let (s1, s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_send_fragments()
165 s1.send(data1).expect("failed to send data1"); in unix_seqpacket_send_fragments()
166 s1.send(data2).expect("failed to send data2"); in unix_seqpacket_send_fragments()
169 let size = s2.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_send_fragments()
173 let size = s2.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_send_fragments()
180 let (s1, s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_get_readable_bytes()
184 s1.send(data1).expect("failed to send data"); in unix_seqpacket_get_readable_bytes()
190 s2.recv(recv_data).expect("failed to recv data"); in unix_seqpacket_get_readable_bytes()
197 let (s1, s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_next_packet_size()
199 s1.send(data1).expect("failed to send data"); in unix_seqpacket_next_packet_size()
203 .expect("failed to set read timeout"); in unix_seqpacket_next_packet_size()
217 let (s1, s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_recv_to_vec()
219 s1.send(data1).expect("failed to send data"); in unix_seqpacket_recv_to_vec()
222 s2.recv_to_vec(recv_data).expect("failed to recv data"); in unix_seqpacket_recv_to_vec()
228 let (s1, s2) = UnixSeqpacket::pair().expect("failed to create socket pair"); in unix_seqpacket_recv_as_vec()
230 s1.send(data1).expect("failed to send data"); in unix_seqpacket_recv_as_vec()
232 let recv_data = s2.recv_as_vec().expect("failed to recv data"); in unix_seqpacket_recv_as_vec()