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

Function test_success

test/sockets/test_tcp_refused.c:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28int fd = -1;
29
30void test_success(void) {
31 printf("REFUSED PASS\n");
32 if (fd >= 0) close(fd);
33#ifdef __EMSCRIPTEN__
34 emscripten_cancel_main_loop();
35#else
36 exit(0);
37#endif
38}
39
40void main_loop(void) {
41 fd_set fdw;

Callers 2

main_loopFunction · 0.70
mainFunction · 0.70

Calls 3

printfFunction · 0.85
closeFunction · 0.50
exitFunction · 0.50

Tested by

no test coverage detected