mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-01 04:46:08 +02:00
Module dependencies for unloading in tests.
This commit is contained in:
parent
a886f09894
commit
b4b03beaed
|
@ -1,3 +1,8 @@
|
|||
2001-09-28 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 15889: Test/V01zmodload.ztst: Compute module dependencies for
|
||||
external modules so that they can be unloaded in the right order.
|
||||
|
||||
2001-09-27 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 15882: zshconfig.ac, Etc/MACHINES, Test/C02cond.ztst: fix
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue