MCPcopy Create free account
hub / github.com/davisking/dlib / test_bad_unix_socket_paths

Method test_bad_unix_socket_paths

dlib/test/sockets2.cpp:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 void test_bad_unix_socket_paths (
153 )
154 {
155 const std::string long_socket_name(1000, 'x');
156 connection::socket_descriptor_type sock = 0;
157 connection* con = 0;
158
159 DLIB_TEST(create_listening_socket(sock, long_socket_name) == OTHER_ERROR);
160 DLIB_TEST(create_connection(con, long_socket_name) == OTHER_ERROR);
161 DLIB_TEST(con == 0);
162 }
163
164 void run_tests (
165 unsigned long timeout_to_use

Callers

nothing calls this directly

Calls 2

create_listening_socketFunction · 0.50
create_connectionFunction · 0.50

Tested by

no test coverage detected