summary refs log tree commit diff
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
parent70e0128c0fdf216396a67f23154dac649158b9a8 (diff)
downloadzsh-b4ce09f88da8326b784735d6677da5909f34da6a.tar.gz
zsh-b4ce09f88da8326b784735d6677da5909f34da6a.tar.xz
zsh-b4ce09f88da8326b784735d6677da5909f34da6a.zip
29410: skip autoload persistence test when zsh/example is not available.
-rw-r--r--ChangeLog7
-rw-r--r--Test/V01zmodload.ztst2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9233f7051..aa9a266d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-31  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* 29410: Test/V01zmodload.ztst: skip autoload persistence test
+	when zsh/example module is not available.
+
 2011-05-31  Mikael Magnusson <mikachu@gmail.com>
 
 	* Omari Norman: users/16057: Completion/Unix/Command/.distfiles,
@@ -14888,5 +14893,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5347 $
+* $Revision: 1.5348 $
 *****************************************************
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