diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-24 06:57:16 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-24 06:57:16 +0000 |
commit | 233b5312683de0c43509ba3e339e17452caa5eea (patch) | |
tree | ec493c0575a0773597b70a8d659b6b99a845bcbd /contrib/netbsd-tests/lib/libc/sys/t_getrusage.c | |
parent | 0bd1a4ddbf8ea468bf4008788e0b8c9ae15bf93d (diff) | |
download | FreeBSD-src-233b5312683de0c43509ba3e339e17452caa5eea.zip FreeBSD-src-233b5312683de0c43509ba3e339e17452caa5eea.tar.gz |
- 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
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/sys/t_getrusage.c')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_getrusage.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c b/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c index 6c4218a..4d8b010 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c @@ -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) |