summary refs log tree commit diff
path: root/Test/V01zmodload.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/V01zmodload.ztst')
-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