summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-18 23:42:44 +0000
committerngie <ngie@FreeBSD.org>2015-11-18 23:42:44 +0000
commita4cd1c7d39390fde357dda05b99473229331d9fc (patch)
treefcbe52c0bb6f8c1df490af67227ce5375d8fd395 /lib
parent0faa3804ef530c877c8f6dfaa3a75937bd5cb1c1 (diff)
downloadFreeBSD-src-a4cd1c7d39390fde357dda05b99473229331d9fc.zip
FreeBSD-src-a4cd1c7d39390fde357dda05b99473229331d9fc.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/tests/net/ether_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/tests/net/ether_test.c b/lib/libc/tests/net/ether_test.c
index fa8e484..5b596f0 100644
--- a/lib/libc/tests/net/ether_test.c
+++ b/lib/libc/tests/net/ether_test.c
@@ -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";
OpenPOWER on IntegriCloud