mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
Module dependencies for unloading in tests.
This commit is contained in:
parent
a886f09894
commit
b4b03beaed
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
2001-09-27 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
* 15882: zshconfig.ac, Etc/MACHINES, Test/C02cond.ztst: fix
|
* 15882: zshconfig.ac, Etc/MACHINES, Test/C02cond.ztst: fix
|
||||||
|
|
|
@ -12,6 +12,10 @@
|
||||||
eval "$name $modfile $link $auto $load"
|
eval "$name $modfile $link $auto $load"
|
||||||
[[ $link == no ]] && continue
|
[[ $link == no ]] && continue
|
||||||
mods=($mods $name)
|
mods=($mods $name)
|
||||||
|
moddeps=
|
||||||
|
modfile=$ZTST_srcdir/../$modfile
|
||||||
|
eval ${${${(f)"$(<$modfile)"}[(r)moddeps=*]}:-:}
|
||||||
|
[[ -n $moddeps ]] && zmodload -d $name $=moddeps
|
||||||
done < $ZTST_testdir/../config.modules
|
done < $ZTST_testdir/../config.modules
|
||||||
|
|
||||||
zmodunload() {
|
zmodunload() {
|
||||||
|
@ -157,5 +161,5 @@
|
||||||
%clean
|
%clean
|
||||||
|
|
||||||
eval "$deps"
|
eval "$deps"
|
||||||
unset deps name modfile link auto load funcs mods
|
unset deps name modfile link auto load funcs mods moddeps
|
||||||
unfunction zmodunload
|
unfunction zmodunload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue