diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-18 23:38:09 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-18 23:38:09 +0000 |
commit | 02e252b417a4084cc0dff45952250e8825107b57 (patch) | |
tree | 57d563e4dfe221efd41b6ca7059c7b2805eba514 | |
parent | 4d902e4cc17d3b1cffdbd7335106dee140ad4819 (diff) | |
download | FreeBSD-src-02e252b417a4084cc0dff45952250e8825107b57.zip FreeBSD-src-02e252b417a4084cc0dff45952250e8825107b57.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
-rw-r--r-- | lib/libc/tests/net/ether_test.c | 4 |
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"; |