summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread
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/lib/libpthread
parentf59f603dcc0bee0ff88cd04e5f61a9570a41fe53 (diff)
don't fail if stdout is not a tty.
Print a test ignored message, instead.
Diffstat (limited to 'regress/lib/libpthread')
-rw-r--r--regress/lib/libpthread/execve/execve.c8
1 files changed, 5 insertions, 3 deletions
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"));