Module Name: src Committed By: jruoho Date: Wed Apr 6 08:47:55 UTC 2011
Modified Files: src/tests/lib/libc/gen: t_nice.c Log Message: As there is PR lib/42587, mark tiny POSIX error as expected failure. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/gen/t_nice.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/gen/t_nice.c diff -u src/tests/lib/libc/gen/t_nice.c:1.2 src/tests/lib/libc/gen/t_nice.c:1.3 --- src/tests/lib/libc/gen/t_nice.c:1.2 Mon Apr 4 10:30:29 2011 +++ src/tests/lib/libc/gen/t_nice.c Wed Apr 6 08:47:55 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_nice.c,v 1.2 2011/04/04 10:30:29 jruoho Exp $ */ +/* $NetBSD: t_nice.c,v 1.3 2011/04/06 08:47:55 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_nice.c,v 1.2 2011/04/04 10:30:29 jruoho Exp $"); +__RCSID("$NetBSD: t_nice.c,v 1.3 2011/04/06 08:47:55 jruoho Exp $"); #include <sys/resource.h> #include <sys/wait.h> @@ -57,12 +57,16 @@ * caller does not have privileges. Note * that the errno is thus "wrong" in NetBSD. */ + atf_tc_expect_fail("PR lib/42587"); + for (i = -20; i < 0; i++) { errno = 0; ATF_REQUIRE(nice(i) == -1); - ATF_REQUIRE(errno == EACCES); + + if (errno != EPERM) + atf_tc_fail("wrong return value"); } }