diff options
Diffstat (limited to 'Test/Y03arguments.ztst')
-rw-r--r-- | Test/Y03arguments.ztst | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst index a62e34a7e..bfdcdec63 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -1,16 +1,18 @@ # Tests for _arguments. %prep - . $ZTST_srcdir/comptest - - mkdir comp.tmp - cd comp.tmp - - comptestinit -z $ZTST_testdir/../Src/zsh && - { - comptesteval 'compdef _tst tst' - tst_arguments () { comptesteval "_tst () { _arguments ${${(@qq)*}} }" } - } + 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 && + { + comptesteval 'compdef _tst tst' + tst_arguments () { comptesteval "_tst () { _arguments ${${(@qq)*}} }" } + } + else + ZTST_unimplemented="the zsh/zpty module is not available" + fi %test tst_arguments ':desc1:(arg1)' |