MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test_success

Function test_success

test/sockets/test_udp_echo.c:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void test_success(void) {
43 printf("UDP ECHO PASS\n");
44 if (server_fd >= 0) close(server_fd);
45 if (client_fd >= 0) close(client_fd);
46#ifdef __EMSCRIPTEN__
47 emscripten_cancel_main_loop();
48#else
49 exit(0);
50#endif
51}
52
53void main_loop(void) {
54 fd_set fdr, fdw;

Callers 1

main_loopFunction · 0.70

Calls 3

printfFunction · 0.85
closeFunction · 0.50
exitFunction · 0.50

Tested by

no test coverage detected