Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2014 06:57:17 +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: r273579 - head/contrib/netbsd-tests/lib/libc/sys
Message-ID:  <201410240657.s9O6vHtY039446@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Fri Oct 24 06:57:16 2014
New Revision: 273579
URL: https://svnweb.freebsd.org/changeset/base/273579

Log:
  - Mark signo __unused in the signal handler function
  - Effectively #if 0 out some code that does not fail on FreeBSD
  
  In collaboration with: pho
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c	Fri Oct 24 06:53:06 2014	(r273578)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c	Fri Oct 24 06:57:16 2014	(r273579)
@@ -47,7 +47,11 @@ static void		sighandler(int);
 static const size_t	maxiter = 2000;
 
 static void
+#if defined(__FreeBSD__)
+sighandler(int signo __unused)
+#else
 sighandler(int signo)
+#endif
 {
 	/* Nothing. */
 }
@@ -168,7 +172,9 @@ ATF_TC_BODY(getrusage_utime_zero, tc)
 	 *
 	 * See also (duplicate) PR port-amd64/41734.
 	 */
+#if defined(__NetBSD__)
 	atf_tc_expect_fail("PR kern/30115");
+#endif
 
 	for (i = 0; i < maxiter; i++) {
 
@@ -182,7 +188,9 @@ ATF_TC_BODY(getrusage_utime_zero, tc)
 			atf_tc_fail("zero user time from getrusage(2)");
 	}
 
+#if defined(__NetBSD__)
 	atf_tc_fail("anticipated error did not occur");
+#endif
 }
 
 ATF_TP_ADD_TCS(tp)



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