-
-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot pass test_numeric_v6 in not support ipv6 kernels #1496
Comments
It seems like it may depend on the specific host you get deployed to, as I've run IPv6 tests on GitHub Actions numerous times in the past. |
Oh wait this isn't GitHub perhaps. I think this is a problem with your environment -- if you don't have IPv6 support then these tests are going to fail. I don't really want to compile tests for every operating system to detect whether that OS or build of the OS or even specific environment supports IPv6. I might be amenable to disabling the test via an environment variable NNG_NO_IPV6 or something like that. |
I've just encountered the same issue, came here to report and found this. Please implement the |
I also have IPv6 disabled at kernel level |
This also checks if the build system has the definitions for AF_INET6, which might help in some embedded IPv4 only settings. The resolver test is enhanced to include a check for IPv6 enabled in the kernel. IPv6 support is enabled by default, of course.
This also checks if the build system has the definitions for AF_INET6, which might help in some embedded IPv4 only settings. The resolver test is enhanced to include a check for IPv6 enabled in the kernel. IPv6 support is enabled by default, of course.
Describe the bug
Cannot pass test_numeric_v6 in not support ipv6 kernels
Expected behavior
All tests passed in not support ipv6 kernels.
Actual Behavior
Message:
resolver_test.c:63: Check nng_aio_alloc(&aio, NULL, NULL) succeeds... ok
resolver_test.c:66: Check nng_aio_result(aio) succeeds... failed
nng_aio_result(aio): expected success, got Address invalid (15)
resolver_test.c:67: Check sa.s_in6.sa_family == NNG_AF_INET6... failed
resolver_test.c:68: Check sa.s_in6.sa_port == nuts_be16(80)... failed
resolver_test.c:69: Check memcmp(sa.s_in6.sa_addr, v6loop, 16) == 0... failed
FAILED: 4 conditions have failed.
Whether to conduct test_numeric_v6 condition should be changed to whether the kernel supports ipv6:
[ -f /proc/net/if_inet6 ] && echo 'IPv6 ready system!' || echo 'No IPv6 support found! Compile the kernel!!'
** Environment Details **
The text was updated successfully, but these errors were encountered: