summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/gen
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-12 23:46:24 +0000
committerngie <ngie@FreeBSD.org>2014-10-12 23:46:24 +0000
commit1cc1341f99e4db303ca09d810d015e413a249d2b (patch)
tree13a655a9eadd0bf1db076d1eb4e63171d42cfb6f /contrib/netbsd-tests/lib/libc/gen
parenta00ee110da93086f30db8e3df88a6e3297461c85 (diff)
downloadFreeBSD-src-1cc1341f99e4db303ca09d810d015e413a249d2b.zip
FreeBSD-src-1cc1341f99e4db303ca09d810d015e413a249d2b.tar.gz
Expect nice_err to fail on FreeBSD with unprivileged users
PR: 189821 Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/gen')
-rw-r--r--contrib/netbsd-tests/lib/libc/gen/t_nice.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_nice.c b/contrib/netbsd-tests/lib/libc/gen/t_nice.c
index 67a0bf5..a0e912b 100644
--- a/contrib/netbsd-tests/lib/libc/gen/t_nice.c
+++ b/contrib/netbsd-tests/lib/libc/gen/t_nice.c
@@ -72,6 +72,11 @@ ATF_TC_BODY(nice_err, tc)
{
int i;
+#if defined(__FreeBSD__)
+ atf_tc_expect_fail("nice(incr) with incr < 0 fails with unprivileged "
+ "users and sets errno == EPERM; see PR # 189821 for more details");
+#endif
+
/*
* The call should fail with EPERM if the
* supplied parameter is negative and the
OpenPOWER on IntegriCloud