summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-02-09 21:19:24 +0000
committerngie <ngie@FreeBSD.org>2017-02-09 21:19:24 +0000
commitd881b8eb8843bab6213c03d985c02dbbff945c39 (patch)
tree4ddaae7df858c39d4efe649e53a1d9ba02673ff0 /contrib/netbsd-tests/lib/libc
parentc286d65a4db083caf43ec32fa9241865aa1293d2 (diff)
downloadFreeBSD-src-d881b8eb8843bab6213c03d985c02dbbff945c39.zip
FreeBSD-src-d881b8eb8843bab6213c03d985c02dbbff945c39.tar.gz
MFC r279154,r279397:
r279154 (by jilles): nice(): Correct return value and [EPERM] error. PR: 189821 Obtained from: NetBSD Relnotes: yes r279397 (by jilles): nice(): Put back old return value, keeping [EPERM] error. Commit r279154 changed the API and ABI significantly, and {NZERO} is still wrong. Also, preserve errno on success instead of setting it to 0. PR: 189821 Relnotes: yes
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
-rw-r--r--contrib/netbsd-tests/lib/libc/gen/t_nice.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_nice.c b/contrib/netbsd-tests/lib/libc/gen/t_nice.c
index 10b8df7..7c6d232 100644
--- a/contrib/netbsd-tests/lib/libc/gen/t_nice.c
+++ b/contrib/netbsd-tests/lib/libc/gen/t_nice.c
@@ -72,11 +72,6 @@ ATF_TC_BODY(nice_err, tc)
{
int i;
-#ifdef __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