svn commit: r291038 - head/lib/libc/tests/net
Garrett Cooper
ngie at FreeBSD.org
Wed Nov 18 23:42:46 UTC 2015
Author: ngie
Date: Wed Nov 18 23:42:44 2015
New Revision: 291038
URL: https://svnweb.freebsd.org/changeset/base/291038
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:
head/lib/libc/tests/net/ether_test.c
Modified: head/lib/libc/tests/net/ether_test.c
==============================================================================
--- head/lib/libc/tests/net/ether_test.c Wed Nov 18 23:38:09 2015 (r291037)
+++ head/lib/libc/tests/net/ether_test.c Wed Nov 18 23:42:44 2015 (r291038)
@@ -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";
More information about the svn-src-head
mailing list