We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33ea4aa commit 983979fCopy full SHA for 983979f
tests/core/posix.c
@@ -94,10 +94,7 @@ void test_core_posix__inet_pton(void)
94
cl_assert(p_inet_pton(AF_INET, "10.foo.bar.1", &addr) == 0);
95
96
/* Test unsupported address families */
97
- cl_git_fail(p_inet_pton(12, "52.472", &addr)); /* AF_DECnet */
98
- cl_assert_equal_i(EAFNOSUPPORT, errno);
99
-
100
- cl_git_fail(p_inet_pton(5, "315.124", &addr)); /* AF_CHAOS */
+ cl_git_fail(p_inet_pton(INT_MAX-1, "52.472", &addr));
101
cl_assert_equal_i(EAFNOSUPPORT, errno);
102
}
103
0 commit comments