svn commit: r291037 - user/ngie/more-tests2/lib/libc/tests/net

Garrett Cooper ngie at FreeBSD.org
Wed Nov 18 23:38:10 UTC 2015


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


More information about the svn-src-user mailing list