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
This commit is contained in:
Enji Cooper 2015-11-18 23:42:44 +00:00
parent aef675d879
commit dc5c5b1da8

View File

@ -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";