svn commit: r273579 - head/contrib/netbsd-tests/lib/libc/sys

Garrett Cooper ngie at FreeBSD.org
Fri Oct 24 06:57:17 UTC 2014


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)


More information about the svn-src-head mailing list