Date: Wed, 18 Nov 2015 23:38:09 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r291037 - user/ngie/more-tests2/lib/libc/tests/net Message-ID: <201511182338.tAINc9IP007643@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Wed Nov 18 23:38:09 2015 New Revision: 291037 URL: https://svnweb.freebsd.org/changeset/base/291037 Log: Do not print out errno if the call succeeded unexpectedly; this was a mistake made in r290868 MFC after: 4 days X-MFC with: r290563, r290868 Reported by: jilles Sponsored by: EMC / Isilon Storage Division Modified: user/ngie/more-tests2/lib/libc/tests/net/ether_test.c Modified: user/ngie/more-tests2/lib/libc/tests/net/ether_test.c ============================================================================== --- user/ngie/more-tests2/lib/libc/tests/net/ether_test.c Wed Nov 18 23:32:29 2015 (r291036) +++ user/ngie/more-tests2/lib/libc/tests/net/ether_test.c Wed Nov 18 23:38:09 2015 (r291037) @@ -65,7 +65,7 @@ ATF_TC_BODY(ether_line_bad_1, tc) char hostname[256]; ATF_REQUIRE_MSG(ether_line(ether_line_bad_1_string, &e, hostname) != 0, - "ether_line succeeded unexpectedly; errno=%d", errno); + "ether_line succeeded unexpectedly"); } static const char *ether_line_bad_2_string = "x x"; @@ -77,7 +77,7 @@ ATF_TC_BODY(ether_line_bad_2, tc) char hostname[256]; ATF_REQUIRE_MSG(ether_line(ether_line_bad_2_string, &e, hostname) != 0, - "ether_line succeeded unexpectedly; errno=%d", errno); + "ether_line succeeded unexpectedly"); } static const char *ether_aton_string = "01:23:45:67:89:ab";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511182338.tAINc9IP007643>