about summary refs log tree commit diff
path: root/Test/V01zmodload.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-03-10 17:55:37 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-03-10 17:55:37 +0000
commit43d480057b2255d4fc82cc4eded038bcea0b5cb6 (patch)
treeb47bf1f7c0a780f921d8b01c3b0902ea3b37dc5a /Test/V01zmodload.ztst
parent7208c4024ea188e904b2aa28a79c6959e9b04a6e (diff)
downloadzsh-43d480057b2255d4fc82cc4eded038bcea0b5cb6.tar.gz
zsh-43d480057b2255d4fc82cc4eded038bcea0b5cb6.tar.xz
zsh-43d480057b2255d4fc82cc4eded038bcea0b5cb6.zip
20959: fix crash unloading zsh/parameter and test the fix
Diffstat (limited to 'Test/V01zmodload.ztst')
-rw-r--r--Test/V01zmodload.ztst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst
index 3787024e1..d26ae1e42 100644
--- a/Test/V01zmodload.ztst
+++ b/Test/V01zmodload.ztst
@@ -151,11 +151,12 @@
  zmodload -e example
 1:Delete the module alias again
 
-# Don't unload the two modules that are required by the test system!
+# Don't unload the main module.
+# Do unload zsh/parameter, but reload it as it is needed.
 
  mods[(r)zsh/main]=()
- mods[(r)zsh/parameter]=()
  zmodunload $mods
+ zmodload zsh/parameter
 0d:Unload the modules loaded by this test suite
 
 %clean