Obsolete
/
libipc-old
Archived
3
0
Fork 0

Test applications up to libipc version 0.7.0.

more_to_read
Karchnu 2020-07-15 16:06:54 +02:00
parent c2aa94716f
commit d9d927cfd2
5 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@ int main(int argc, char * argv[])
SECURE_DECLARATION(struct ipc_ctx, ctx);
SECURE_DECLARATION(struct ipc_event, event);
ret = ipc_connection (&ctx, SERVICE_NAME);
ret = ipc_connection (&ctx, SERVICE_NAME, NULL);
if (ret.error_code != IPC_ERROR_NONE) {
printf ("error: %s\n", ipc_errors_get(ret.error_code));
return EXIT_FAILURE;

View File

@ -19,7 +19,7 @@ void non_interactive ()
SECURE_DECLARATION(struct ipc_ctx, ctx);
// init service
TEST_IPC_Q(ipc_connection (&ctx, SERVICE_NAME), EXIT_FAILURE);
TEST_IPC_Q(ipc_connection (&ctx, SERVICE_NAME, NULL), EXIT_FAILURE);
int server_fd = ctx.pollfd[0].fd;

View File

@ -69,8 +69,8 @@ int main(void)
SECURE_DECLARATION(struct ipc_ctx, ctx2);
SECURE_DECLARATION(struct ipc_event, event);
TEST_IPC_Q (ipc_connection (&ctx1, SERVICE_NAME), EXIT_FAILURE);
TEST_IPC_Q (ipc_connection (&ctx2, SERVICE_NAME), EXIT_FAILURE);
TEST_IPC_Q (ipc_connection (&ctx1, SERVICE_NAME, NULL), EXIT_FAILURE);
TEST_IPC_Q (ipc_connection (&ctx2, SERVICE_NAME, NULL), EXIT_FAILURE);
send_message (&ctx1);
read_message (&ctx1);

View File

@ -47,7 +47,7 @@ int main(void)
{
SECURE_DECLARATION(struct ipc_ctx, ctx);
TEST_IPC_Q(ipc_connection (&ctx, SERVICE_NAME), EXIT_FAILURE);
TEST_IPC_Q(ipc_connection (&ctx, SERVICE_NAME, NULL), EXIT_FAILURE);
send_message (&ctx);
read_message (&ctx);

View File

@ -47,7 +47,7 @@ int main(int argc, char * argv[])
memcpy(message_str, DEFAULT_MSG, strlen(DEFAULT_MSG));
}
TEST_IPC_Q (ipc_connection (&ctx, SERVICE_NAME), EXIT_FAILURE);
TEST_IPC_Q (ipc_connection (&ctx, SERVICE_NAME, NULL), EXIT_FAILURE);
SECURE_MALLOC (write_m.payload, strlen(message_str), exit(EXIT_FAILURE));
memcpy (write_m.payload, message_str, strlen(message_str));