summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2011-05-31 16:01:38 +0000
committerBart Schaefer <barts@users.sourceforge.net>2011-05-31 16:01:38 +0000
commitb4ce09f88da8326b784735d6677da5909f34da6a (patch)
treec6e3c2556d25ab624b0afe7aba35b4489118db19 /Test
parent70e0128c0fdf216396a67f23154dac649158b9a8 (diff)
downloadzsh-b4ce09f88da8326b784735d6677da5909f34da6a.tar.gz
zsh-b4ce09f88da8326b784735d6677da5909f34da6a.tar.xz
zsh-b4ce09f88da8326b784735d6677da5909f34da6a.zip
29410: skip autoload persistence test when zsh/example is not available.
Diffstat (limited to 'Test')
-rw-r--r--Test/V01zmodload.ztst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst
index d74b0ef18..ea908e952 100644
--- a/Test/V01zmodload.ztst
+++ b/Test/V01zmodload.ztst
@@ -125,8 +125,10 @@
  fi
 0d:Autoload a module via a builtin
 
+ if [[ $mods[(r)zsh/example] == zsh/example ]]; then
   zmodload -u zsh/example
   builtin example
+ fi
 0d:Autoloads are persistent
 
   (zmodload -u zsh/parameter