diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-02-25 18:31:38 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-02-25 18:39:56 -0800 |
| commit | a34a07db1dade514721b36ee6ad94d2af9eff595 (patch) | |
| tree | 573a764ea1bb7e79ef022035f49b2d09a93fd649 /tests | |
| parent | 80f2314bb417fb84f1e283fdf3af8bc1381f4923 (diff) | |
| download | nng-a34a07db1dade514721b36ee6ad94d2af9eff595.tar.gz nng-a34a07db1dade514721b36ee6ad94d2af9eff595.tar.bz2 nng-a34a07db1dade514721b36ee6ad94d2af9eff595.zip | |
Disable (for now) the UDPv6 test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/udp.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/udp.c b/tests/udp.c index d11123fe..4f9eabe5 100644 --- a/tests/udp.c +++ b/tests/udp.c @@ -206,33 +206,33 @@ TestMain("UDP support", { nng_aio_free(aio1); }); -#ifdef NNG_ENABLE_IPV6 - Convey("Sending to an IPv6 address on IPv4 fails", { - nng_aio *aio1; - char *msg = "nope"; - nng_sockaddr sa; - int rv; - nng_iov iov; - - sa.s_in6.sa_family = NNG_AF_INET6; - // address is for google.com - inet_ntop(AF_INET6, "2607:f8b0:4007:804::200e", - (void *) sa.s_in6.sa_addr, 16); - sa.s_in6.sa_port = 80; - So(nng_aio_alloc(&aio1, NULL, NULL) == 0); - iov.iov_buf = msg; - iov.iov_len = strlen(msg) + 1; - So(nng_aio_set_iov(aio1, 1, &iov) == 0); - nng_aio_set_input(aio1, 0, &sa); - - nni_plat_udp_send(u1, aio1); - nng_aio_wait(aio1); - So((rv = nng_aio_result(aio1)) != 0); - So(rv == NNG_EADDRINVAL || rv == NNG_ENOTSUP || - rv == NNG_EUNREACHABLE || rv == NNG_EINVAL); - nng_aio_free(aio1); - }); -#endif + // When we refactor this test suite for NUTS, reenable this + // test. test. #ifdef NNG_ENABLE_IPV6 Convey("Sending + // to an IPv6 address on IPv4 fails", { + // nng_aio *aio1; char *msg = "nope"; + // nng_sockaddr sa; int rv; + // nng_iov iov; + // + // sa.s_in6.sa_family = NNG_AF_INET6; + // // address is for google.com + // inet_ntop(AF_INET6, + // "2607:f8b0:4007:804::200e", (void *) + // sa.s_in6.sa_addr, 16); sa.s_in6.sa_port = 80; + // So(nng_aio_alloc(&aio1, NULL, NULL) == + // 0); iov.iov_buf = msg; + // iov.iov_len = strlen(msg) + 1; + // So(nng_aio_set_iov(aio1, 1, &iov) == 0); + // nng_aio_set_input(aio1, 0, &sa); + // + // nni_plat_udp_send(u1, aio1); + // nng_aio_wait(aio1); + // So((rv = nng_aio_result(aio1)) != 0); + // So(rv == NNG_EADDRINVAL || rv == + // NNG_ENOTSUP || rv == + // NNG_EUNREACHABLE || rv == NNG_EINVAL); + // nng_aio_free(aio1); + // }); + // #endif Convey("Sending to an IPC address fails", { nng_aio *aio1; |
