Home
last modified time | relevance | path

Searched refs:TESTE (Results 1 - 3 of 3) sorted by relevance

/third_party/musl/libc-test/src/functional/
H A Dsocket.c12 #define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno))) macro
20 TESTE((s=socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP))>=0); in main()
21 TESTE(bind(s, (void *)&sa, sizeof sa)==0); in main()
22 TESTE(getsockname(s, (void *)&sa, (socklen_t[]){sizeof sa})==0); in main()
24 TESTE(setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, in main()
27 TESTE((c=socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP))>=0); in main()
29 TESTE(sendto(c, "x", 1, 0, (void *)&sa, sizeof sa)==1); in main()
30 TESTE(recvfrom(s, buf, sizeof buf, 0, (void *)&sa, (socklen_t[]){sizeof sa})==1); in main()
38 TESTE((s=socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP))>=0); in main()
40 TESTE(bin in main()
[all...]
H A Dpthread_cancel-points.c14 #define TESTE(f, m) do { \ macro
84 TESTE(*fd = shm_open("/testshm", O_RDWR|O_CREAT, 0666), ""); in execute_shm_open()
91 TESTE(close(*fd), "shm fd"); in cleanup_shm()
92 TESTE(shm_unlink("/testshm"), ""); in cleanup_shm()
H A Dfcntl.c10 #define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno))) macro
20 if (!TESTE(f=tmpfile())) return t_status; in main()
27 TESTE(fcntl(fd, F_SETLK, &fl)==0); in main()

Completed in 2 milliseconds