fd-exchange tests in C: fix socket names.
This commit is contained in:
parent
fc0c28fb7e
commit
3097dca06a
@ -24,7 +24,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
T_PERROR_R (((fd = open (argv[1], O_CREAT | O_RDWR)) < 0), "cannot open the file", EXIT_FAILURE);
|
||||
|
||||
TEST_IPC_Q (usock_connect (&sock, "SOCKET_FD_EXCHANGE_TEST"), EXIT_FAILURE);
|
||||
TEST_IPC_Q (usock_connect (&sock, "./SOCKET_FD_EXCHANGE_TEST"), EXIT_FAILURE);
|
||||
TEST_IPC_Q (ipc_provide_fd (sock, fd), EXIT_FAILURE);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
@ -24,7 +24,7 @@ int main (int argc, char *argv[])
|
||||
int usockclient = 0;
|
||||
int fd = 0;
|
||||
|
||||
TEST_IPC_Q (usock_init (&usock, "SOCKET_FD_EXCHANGE_TEST"), EXIT_FAILURE);
|
||||
TEST_IPC_Q (usock_init (&usock, "./SOCKET_FD_EXCHANGE_TEST"), EXIT_FAILURE);
|
||||
TEST_IPC_Q (usock_accept (usock, &usockclient), EXIT_FAILURE);
|
||||
TEST_IPC_Q (ipc_receive_fd (usockclient, &fd), EXIT_FAILURE);
|
||||
|
||||
|
Reference in New Issue
Block a user