From 2ecaa071856fe713195be416466c2441ecff226e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 11 Mar 2004 19:14:38 +0000 Subject: 19603: Gracefully omit Y tests if zpty is not available --- Test/Y01completion.ztst | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'Test/Y01completion.ztst') 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 -- cgit 1.4.1