diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-09-07 11:33:05 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 13:59:35 -0700 |
| commit | 34be2c20a62e94e3a2815dd869609554b3922477 (patch) | |
| tree | 55eb5ae8aec9d9213f502bffda50abaa11b06bc2 /tests/ipc.c | |
| parent | 74adece2303ab7c2b05459c7ff24b362e9660068 (diff) | |
| download | nng-34be2c20a62e94e3a2815dd869609554b3922477.tar.gz nng-34be2c20a62e94e3a2815dd869609554b3922477.tar.bz2 nng-34be2c20a62e94e3a2815dd869609554b3922477.zip | |
Remove the legacy transport registration functions.
This also allows to remove most of the transport headers.
Only zerotier.h sticks around, and only for now. (We expect to
eject it into a separate module.)
Diffstat (limited to 'tests/ipc.c')
| -rw-r--r-- | tests/ipc.c | 15 |
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); }) |
