Home
last modified time | relevance | path

Searched refs:assertRaisesErrno (Results 1 – 14 of 14) sorted by relevance

/kernel/tests/net/test/
Dbpf_test.py175 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)
182 self.assertRaisesErrno(errno.ENOENT, GetNextKey, self.map_fd, key)
199 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, 101)
219 self.assertRaisesErrno(errno.EPERM, UpdateMap, self.map_fd, key, value)
220 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)
230 self.assertRaisesErrno(errno.EPERM, LookupMap, self.map_fd, key)
244 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 4, self.prog_fd)
245 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 6, self.prog_fd)
308 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, uid)
368 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 4, None)
[all …]
Dping6_test.py337 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV4_PING)
341 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV6_PING)
428 self.assertRaisesErrno(errno.EAFNOSUPPORT, function, *args)
469 self.assertRaisesErrno(errno.EINVAL, s.bind, ("127.0.0.1", 22))
488 self.assertRaisesErrno(errno.EAGAIN, s4.recv, 32768)
493 self.assertRaisesErrno(errno.EADDRINUSE, s6.bind, ("0.0.0.0", 167))
498 self.assertRaisesErrno(errno.EINVAL, s.bind, ("0.0.0.0", 5429))
512 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::1", 22))
531 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::", 5429))
535 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
[all …]
Dtcp_fastopen_test.py48 self.assertRaisesErrno(ENOTCONN, sock.getpeername)
57 with self.assertRaisesErrno(ESRCH):
63 with self.assertRaisesErrno(ENOENT):
75 with self.assertRaisesErrno(EINPROGRESS):
Dsock_diag_test.py120 self.assertRaisesErrno(ENOTCONN, sock.getpeername)
146 self.assertRaisesErrno(ENOTCONN, s.getpeername)
370 self.assertRaisesErrno(
383 self.assertRaisesErrno(EINVAL, DiagDump, op + 17)
423 with self.assertRaisesErrno(ENOENT):
498 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req)
562 self.assertRaisesErrno(ENOENT, open, self.TCP_DEFAULT_INIT_RWND, "w")
584 self.assertRaisesErrno(EINPROGRESS, s.connect, (dstsockaddr, 53))
609 self.assertRaisesErrno(EINVAL, sock.accept)
722 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)
[all …]
Dxfrm_test.py134 self.assertRaisesErrno(
164 self.assertRaisesErrno(
183 self.assertRaisesErrno(
316 self.assertRaisesErrno(EAGAIN, twisted_socket.recv, 4096)
329 self.assertRaisesErrno(EAGAIN, twisted_socket.recv, 4096)
410 with self.assertRaisesErrno(ENOENT):
426 with self.assertRaisesErrno(ENOENT):
466 with self.assertRaisesErrno(EAGAIN):
650 with self.assertRaisesErrno(EEXIST):
731 with self.assertRaisesErrno(ENETUNREACH):
[all …]
Dleak_test.py37 self.assertRaisesErrno(ENOTCONN, s.shutdown, SHUT_RDWR)
Dtcp_repair_test.py66 self.assertRaisesErrno(ENOTCONN, sock.getpeername)
78 self.assertRaisesErrno(EINPROGRESS, s.connect, (remotesockaddr, TEST_PORT))
141 self.assertRaisesErrno(EINVAL, sock.send, "write test")
148 self.assertRaisesErrno(EPERM, sock.recv, 4096)
Dtcp_nuke_addr_test.py88 self.assertRaisesErrno(errno.ENOTTY, KillAddrIoctl, addr)
Dmultinetwork_test.py87 self.assertRaisesErrno(errno.EINPROGRESS, s.connect, (dstsockaddr, 53))
790 self.assertRaisesErrno(errno.ENETUNREACH, s.sendto, UDP_PAYLOAD,
924 self.assertRaisesErrno(
1057 self.assertRaisesErrno(
1071 self.assertRaisesErrno(
1075 self.assertRaisesErrno(errno.ENOENT,
1090 self.assertRaisesErrno(
1120 self.assertRaisesErrno(
1144 self.assertRaisesErrno(
1185 self.assertRaisesErrno(errno.ENETUNREACH,
Dqtaguid_test.py89 self.assertRaisesErrno(errno.EPERM, s.sendto, "foo", addr)
116 self.assertRaisesErrno(errno.EPERM, s2.sendto, "foo", addr2)
Dsrcaddr_selection_test.py117 self.assertRaisesErrno(errno.EADDRNOTAVAIL, self.BindToAddress, address)
118 self.assertRaisesErrno(errno.EINVAL,
Dneighbour_test.py100 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK)
Dnet_test.py395 def assertRaisesErrno(self, err_num, f=None, *args): member in NetworkTest
Dxfrm_tunnel_test.py662 self.assertRaisesErrno(EAGAIN, read_sock.recv, 4096)