Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/stdio A test case may not assume opening /dev...



details:   https://anonhg.NetBSD.org/src/rev/559bf2e3b97d
branches:  trunk
changeset: 769562:559bf2e3b97d
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Sep 14 14:34:37 2011 +0000

description:
A test case may not assume opening /dev/tty does something sensible.

diffstat:

 tests/lib/libc/stdio/t_fopen.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 73e05ca6fe0b -r 559bf2e3b97d tests/lib/libc/stdio/t_fopen.c
--- a/tests/lib/libc/stdio/t_fopen.c    Wed Sep 14 13:47:40 2011 +0000
+++ b/tests/lib/libc/stdio/t_fopen.c    Wed Sep 14 14:34:37 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fopen.c,v 1.2 2011/09/12 04:23:29 jruoho Exp $ */
+/*     $NetBSD: t_fopen.c,v 1.3 2011/09/14 14:34:37 martin Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fopen.c,v 1.2 2011/09/12 04:23:29 jruoho Exp $");
+__RCSID("$NetBSD: t_fopen.c,v 1.3 2011/09/14 14:34:37 martin Exp $");
 
 #include <atf-c.h>
 #include <errno.h>
@@ -312,7 +312,7 @@
 ATF_TC_BODY(fopen_regular, tc)
 {
        static const char *mode[] = { "rf", "r+f", "wf", "w+f", "af", "a+f" };
-       static const char *devs[] = { _PATH_DEVNULL, _PATH_TTY };
+       static const char *devs[] = { _PATH_DEVNULL };
 
        size_t i, j;
        FILE *f;



Home | Main Index | Thread Index | Old Index