Module std::old_io::testUnstable [-] [+] [src]

Various utility functions useful for writing I/O tests

Functions

next_test_ip4

Get a unique IPv4 localhost:port pair starting at 9600

next_test_ip6

Get a unique IPv6 localhost:port pair starting at 9600

next_test_port

Get a port number, starting at 9600, for use in tests

next_test_unix

Get a temporary path which could be the location of a unix socket

raise_fd_limit

Raises the file descriptor limit when running tests if necessary