Module Name: src
Committed By: martin
Date: Wed Sep 14 14:34:37 UTC 2011
Modified Files:
src/tests/lib/libc/stdio: t_fopen.c
Log Message:
A test case may not assume opening /dev/tty does something sensible.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/stdio/t_fopen.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/stdio/t_fopen.c
diff -u src/tests/lib/libc/stdio/t_fopen.c:1.2 src/tests/lib/libc/stdio/t_fopen.c:1.3
--- src/tests/lib/libc/stdio/t_fopen.c:1.2 Mon Sep 12 04:23:29 2011
+++ src/tests/lib/libc/stdio/t_fopen.c Wed Sep 14 14:34:37 2011
@@ -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;