Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/sys PR lib/45148 was fixed; remove xfail.



details:   https://anonhg.NetBSD.org/src/rev/130476a46a16
branches:  trunk
changeset: 767343:130476a46a16
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Jul 16 14:29:15 2011 +0000

description:
PR lib/45148 was fixed; remove xfail.

diffstat:

 tests/lib/libc/sys/t_dup.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r ebef65460212 -r 130476a46a16 tests/lib/libc/sys/t_dup.c
--- a/tests/lib/libc/sys/t_dup.c        Sat Jul 16 12:35:40 2011 +0000
+++ b/tests/lib/libc/sys/t_dup.c        Sat Jul 16 14:29:15 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dup.c,v 1.3 2011/07/15 09:40:16 jruoho Exp $ */
+/* $NetBSD: t_dup.c,v 1.4 2011/07/16 14:29:15 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_dup.c,v 1.3 2011/07/15 09:40:16 jruoho Exp $");
+__RCSID("$NetBSD: t_dup.c,v 1.4 2011/07/16 14:29:15 jruoho Exp $");
 
 #include <sys/resource.h>
 #include <sys/stat.h>
@@ -185,8 +185,6 @@
 {
        int fd;
 
-       atf_tc_expect_fail("PR lib/45148");
-
        fd = open("/etc/passwd", O_RDONLY);
        ATF_REQUIRE(fd >= 0);
 
@@ -202,8 +200,11 @@
        errno = 0;
        ATF_REQUIRE_ERRNO(EBADF, dup3(-1, fd, O_CLOEXEC) == -1);
 
+       /*
+        * See the closed PR lib/45148.
+        */
        errno = 0;
-       ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, 1, O_NOFOLLOW) == -1); /* Fails. */
+       ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, 1, O_NOFOLLOW) == -1);
 
        (void)close(fd);
 }



Home | Main Index | Thread Index | Old Index