Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/gen As there is PR lib/42587, mark tiny POSIX...



details:   https://anonhg.NetBSD.org/src/rev/1682b35d4b4d
branches:  trunk
changeset: 763894:1682b35d4b4d
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Wed Apr 06 08:47:55 2011 +0000

description:
As there is PR lib/42587, mark tiny POSIX error as expected failure.

diffstat:

 tests/lib/libc/gen/t_nice.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 613f15478003 -r 1682b35d4b4d tests/lib/libc/gen/t_nice.c
--- a/tests/lib/libc/gen/t_nice.c       Wed Apr 06 08:38:43 2011 +0000
+++ b/tests/lib/libc/gen/t_nice.c       Wed Apr 06 08:47:55 2011 +0000
@@ -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");
        }
 }
 



Home | Main Index | Thread Index | Old Index