Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
int fd = -1;
29
30
void 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
40
void main_loop(void) {
41
fd_set fdw;
Callers
2
main_loop
Function · 0.70
main
Function · 0.70
Calls
3
printf
Function · 0.85
close
Function · 0.50
exit
Function · 0.50
Tested by
no test coverage detected