diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-09-28 14:43:13 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-09-28 14:43:13 +0000 |
commit | b4b03beaed00bc0abc74f12634ad0a26dbcf75c4 (patch) | |
tree | 8421e695b8a472a276e14a0fc86b0dcfbabf658d /Test | |
parent | a886f098944f183e0fc70bb3672cbef0f4e18b6b (diff) | |
download | zsh-b4b03beaed00bc0abc74f12634ad0a26dbcf75c4.tar.gz zsh-b4b03beaed00bc0abc74f12634ad0a26dbcf75c4.tar.xz zsh-b4b03beaed00bc0abc74f12634ad0a26dbcf75c4.zip |
Module dependencies for unloading in tests.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/V01zmodload.ztst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst index fef7d0232..3787024e1 100644 --- a/Test/V01zmodload.ztst +++ b/Test/V01zmodload.ztst @@ -12,6 +12,10 @@ eval "$name $modfile $link $auto $load" [[ $link == no ]] && continue mods=($mods $name) + moddeps= + modfile=$ZTST_srcdir/../$modfile + eval ${${${(f)"$(<$modfile)"}[(r)moddeps=*]}:-:} + [[ -n $moddeps ]] && zmodload -d $name $=moddeps done < $ZTST_testdir/../config.modules zmodunload() { @@ -157,5 +161,5 @@ %clean eval "$deps" - unset deps name modfile link auto load funcs mods + unset deps name modfile link auto load funcs mods moddeps unfunction zmodunload |