Date: Mon, 3 Nov 2014 21:26:12 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r274062 - head/contrib/netbsd-tests/lib/libc/inet Message-ID: <201411032126.sA3LQC1m030119@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Nov 3 21:26:11 2014 New Revision: 274062 URL: https://svnweb.freebsd.org/changeset/base/274062 Log: inet_network on FreeBSD returns NULL when provided "0x" to inet_network Submitted by: pho Modified: head/contrib/netbsd-tests/lib/libc/inet/t_inet_network.c Modified: head/contrib/netbsd-tests/lib/libc/inet/t_inet_network.c ============================================================================== --- head/contrib/netbsd-tests/lib/libc/inet/t_inet_network.c Mon Nov 3 21:21:08 2014 (r274061) +++ head/contrib/netbsd-tests/lib/libc/inet/t_inet_network.c Mon Nov 3 21:26:11 2014 (r274062) @@ -144,7 +144,11 @@ ATF_TC_BODY(inet_network_err, tc) H_REQUIRE(".", 0xffffffff); H_REQUIRE("1.", 0xffffffff); H_REQUIRE(".1", 0xffffffff); +#if defined(__FreeBSD__) || defined(__APPLE__) + H_REQUIRE("0x", 0x0); +#else H_REQUIRE("0x", 0xffffffff); +#endif H_REQUIRE("", 0xffffffff); H_REQUIRE(" ", 0xffffffff); H_REQUIRE("bar", 0xffffffff);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411032126.sA3LQC1m030119>