Test applications up to libipc version 0.7.0.
parent
c2aa94716f
commit
d9d927cfd2
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
Reference in New Issue