summaryrefslogtreecommitdiffstats
path: root/Test/Y01completion.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-03-11 19:14:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-03-11 19:14:38 +0000
commit2ecaa071856fe713195be416466c2441ecff226e (patch)
treecf258ce0cb53d0c169602cce037ddd24c70c5060 /Test/Y01completion.ztst
parentadd _tla (diff)
downloadzsh-2ecaa071856fe713195be416466c2441ecff226e.tar
zsh-2ecaa071856fe713195be416466c2441ecff226e.tar.gz
zsh-2ecaa071856fe713195be416466c2441ecff226e.tar.bz2
zsh-2ecaa071856fe713195be416466c2441ecff226e.tar.lz
zsh-2ecaa071856fe713195be416466c2441ecff226e.tar.xz
zsh-2ecaa071856fe713195be416466c2441ecff226e.tar.zst
zsh-2ecaa071856fe713195be416466c2441ecff226e.zip
19603: Gracefully omit Y tests if zpty is not available
Diffstat (limited to 'Test/Y01completion.ztst')
-rw-r--r--Test/Y01completion.ztst26
1 files changed, 14 insertions, 12 deletions
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index 49df8ab3a..1d21c2a33 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -1,18 +1,20 @@
# Tests for completion system.
%prep
- . $ZTST_srcdir/comptest
-
- mkdir comp.tmp
- cd comp.tmp
-
- comptestinit -z $ZTST_testdir/../Src/zsh &&
- {
- mkdir dir1 &&
- mkdir dir2 &&
- touch file1 &&
- touch file2
- }
+ if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then
+ . $ZTST_srcdir/comptest
+ mkdir comp.tmp
+ cd comp.tmp
+ comptestinit -z $ZTST_testdir/../Src/zsh &&
+ {
+ mkdir dir1 &&
+ mkdir dir2 &&
+ touch file1 &&
+ touch file2
+ }
+ else
+ ZTST_unimplemented="the zsh/zpty module is not available"
+ fi
%test