summaryrefslogtreecommitdiff
path: root/regress/key-options.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/key-options.sh')
-rw-r--r--regress/key-options.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/regress/key-options.sh b/regress/key-options.sh
index aa5f8bf97..5e3a4f66a 100644
--- a/regress/key-options.sh
+++ b/regress/key-options.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: key-options.sh,v 1.5 2018/03/02 02:53:27 djm Exp $ 1# $OpenBSD: key-options.sh,v 1.6 2018/03/04 01:46:48 djm Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="key options" 4tid="key options"
@@ -32,9 +32,10 @@ expect_pty_succeed() {
32 fail "key option failed $which" 32 fail "key option failed $which"
33 else 33 else
34 r=`cat $OBJ/data` 34 r=`cat $OBJ/data`
35 if [ ! -e "$r" ]; then 35 case "$r" in
36 fail "key option failed $which (pty $r)" 36 /dev/*) ;;
37 fi 37 *) fail "key option failed $which (pty $r)" ;;
38 esac
38 fi 39 fi
39} 40}
40expect_pty_fail() { 41expect_pty_fail() {
@@ -49,6 +50,10 @@ expect_pty_fail() {
49 if [ -e "$r" ]; then 50 if [ -e "$r" ]; then
50 fail "key option failed $which (pty $r)" 51 fail "key option failed $which (pty $r)"
51 fi 52 fi
53 case "$r" in
54 /dev/*) fail "key option failed $which (pty $r)" ;;
55 *) ;;
56 esac
52 fi 57 fi
53} 58}
54# First ensure that we can allocate a pty by default. 59# First ensure that we can allocate a pty by default.