Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2015 23:42:45 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291038 - head/lib/libc/tests/net
Message-ID:  <201511182342.tAINgjlO010486@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511182342.tAINgjlO010486>