aboutsummaryrefslogtreecommitdiff
path: root/tests/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ipc.c')
-rw-r--r--tests/ipc.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/ipc.c b/tests/ipc.c
index 4f5de38b..4011f2ae 100644
--- a/tests/ipc.c
+++ b/tests/ipc.c
@@ -19,7 +19,6 @@
#include <nng/nng.h>
#include <nng/protocol/reqrep0/req.h>
-#include <nng/transport/ipc/ipc.h>
#include "convey.h"
#include "trantest.h"
@@ -49,10 +48,8 @@ check_props(nng_msg *msg)
So(nng_pipe_get(p, NNG_OPT_REMADDR, &ra, &z) == NNG_EINVAL);
#ifdef _WIN32
- So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_UID, &id) ==
- NNG_ENOTSUP);
- So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_GID, &id) ==
- NNG_ENOTSUP);
+ So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_UID, &id) == NNG_ENOTSUP);
+ So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_GID, &id) == NNG_ENOTSUP);
So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_ZONEID, &id) ==
NNG_ENOTSUP);
So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_PID, &id) == 0);
@@ -68,8 +65,7 @@ check_props(nng_msg *msg)
So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_PID, &id) == 0);
So(id == (uint64_t) getpid());
#else
- So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_PID, &id) ==
- NNG_ENOTSUP);
+ So(nng_pipe_get_uint64(p, NNG_OPT_IPC_PEER_PID, &id) == NNG_ENOTSUP);
#endif
#ifdef NNG_HAVE_GETPEERUCRED
@@ -83,6 +79,5 @@ check_props(nng_msg *msg)
return (0);
}
-TestMain("IPC Transport", {
- trantest_test_extended("ipc:///tmp/nng_ipc_test_%u", check_props);
-})
+TestMain("IPC Transport",
+ { trantest_test_extended("ipc:///tmp/nng_ipc_test_%u", check_props); })