Enable some tests

This commit is contained in:
Wildan M
2026-01-07 22:59:34 +07:00
parent 99c942318a
commit 02752dda27
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -13,8 +13,6 @@ FAILING_TESTS=tls \
stdlib/ptsname \
sys_mman \
signals/pthread_kill-child \
sys_socket/getpeername \
sys_socket/recv \
sys_socket/recvfrom \
sys_socket/unixpeername \
sys_socket/unixrecvfrom \
@@ -273,6 +271,8 @@ VARIED_NAMES=\
stdlib/realpath \
sys_epoll/epoll \
sys_resource/constants \
sys_socket/getpeername \
sys_socket/recv \
sys_stat/stat \
sys_statvfs/statvfs \
sys_utsname/uname \
+3 -3
View File
@@ -20,7 +20,7 @@ int main(void)
ERROR_IF(bind, status, == -1);
status = listen(listen_fd, 1);
ERROR_IF(bind, status, == -1);
ERROR_IF(listen, status, == -1);
status = getsockname(listen_fd, saddr, &addr_len);
ERROR_IF(getsockname, status, == -1);
@@ -32,11 +32,11 @@ int main(void)
ERROR_IF(connect, status, == -1);
int server_fd = accept(listen_fd, NULL, NULL);
ERROR_IF(connect, status, == -1);
ERROR_IF(accept, status, == -1);
char *c = "foo";
status = send(server_fd, c, 4, 0);
ERROR_IF(sendto, status, == -1);
ERROR_IF(send, status, == -1);
char x[4];
ssize_t amount = recv(client_fd, x, 4, 0);