summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2002-12-13 20:21:05 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2002-12-13 20:21:05 +0000
commit6817fdf6d882774efa343619f83e4835d932f081 (patch)
treeeec6d973110974dfeb23ac40950e61af1132b7af /regress
parentf59f603dcc0bee0ff88cd04e5f61a9570a41fe53 (diff)
don't fail if stdout is not a tty.
Print a test ignored message, instead.
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libc_r/execve/execve.c8
-rw-r--r--regress/lib/libpthread/execve/execve.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/regress/lib/libc_r/execve/execve.c b/regress/lib/libc_r/execve/execve.c
index fa4ceac012e..75e2083f796 100644
--- a/regress/lib/libc_r/execve/execve.c
+++ b/regress/lib/libc_r/execve/execve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: execve.c,v 1.1 2001/08/15 14:37:11 fgsch Exp $ */
+/* $OpenBSD: execve.c,v 1.2 2002/12/13 20:21:04 marc Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -66,8 +66,10 @@ main()
CHECKn(ttynm = ttyname(STDOUT_FILENO));
printf("tty is %s\n", ttynm);
CHECKe(fd = open(ttynm, O_RDWR));
- } else
- PANIC("stdout is not a tty: this test needs a tty");
+ } else {
+ printf("IGNORED: stdout is not a tty: this test needs a tty\n");
+ SUCCEED;
+ }
CHECKn(printf("This output is necessary to set the stdout fd to NONBLOCKING\n"));
diff --git a/regress/lib/libpthread/execve/execve.c b/regress/lib/libpthread/execve/execve.c
index fa4ceac012e..75e2083f796 100644
--- a/regress/lib/libpthread/execve/execve.c
+++ b/regress/lib/libpthread/execve/execve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: execve.c,v 1.1 2001/08/15 14:37:11 fgsch Exp $ */
+/* $OpenBSD: execve.c,v 1.2 2002/12/13 20:21:04 marc Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -66,8 +66,10 @@ main()
CHECKn(ttynm = ttyname(STDOUT_FILENO));
printf("tty is %s\n", ttynm);
CHECKe(fd = open(ttynm, O_RDWR));
- } else
- PANIC("stdout is not a tty: this test needs a tty");
+ } else {
+ printf("IGNORED: stdout is not a tty: this test needs a tty\n");
+ SUCCEED;
+ }
CHECKn(printf("This output is necessary to set the stdout fd to NONBLOCKING\n"));