Archived
3
0

fd-exchange tests in C: fix socket names.

This commit is contained in:
Philippe Pittoli 2023-01-03 12:09:28 +01:00
parent fc0c28fb7e
commit 3097dca06a
2 changed files with 2 additions and 2 deletions

View File

@ -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); 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); TEST_IPC_Q (ipc_provide_fd (sock, fd), EXIT_FAILURE);
return EXIT_SUCCESS; return EXIT_SUCCESS;

View File

@ -24,7 +24,7 @@ int main (int argc, char *argv[])
int usockclient = 0; int usockclient = 0;
int fd = 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 (usock_accept (usock, &usockclient), EXIT_FAILURE);
TEST_IPC_Q (ipc_receive_fd (usockclient, &fd), EXIT_FAILURE); TEST_IPC_Q (ipc_receive_fd (usockclient, &fd), EXIT_FAILURE);