1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-04 06:14:50 +01:00

Tweak zmodload tests, fix fd 8.

This commit is contained in:
Bart Schaefer 2001-05-18 16:20:48 +00:00
parent 4544933427
commit de880a6bbb
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2001-05-18 Bart Schaefer <schaefer@zsh.org>
* 14385: Test/V01zmodload.ztst, Test/ztst.zsh: Fix typo in a
comment; print a warning when unable to test zsh/example; make
sure the file descriptor for that warning (and others in other
test files) is available even if ZTST_verbose has an unexpected
value.
2001-05-18 Peter Stephenson <pws@csr.com>
* 14382: Src/module.c: zmodload -uf wouldn't work even if the

View file

@ -27,9 +27,9 @@
1:Test reloading an already-loaded module
?ZTST_execchunk:zmodload:2: module zsh/main already loaded.
# Loop over the modules fond above and attempt to load each one. Use
# Loop over the modules found above and attempt to load each one. Use
# the -i flag in case dependencies cause multiple modules to be loaded,
# or in case some previous test loaded a module.
# or in case some previous test suite loaded a module.
for m in $mods
do
@ -74,7 +74,7 @@
zmodload -ab zsh/example example
builtin example
zmodload -e zsh/example
else :
else print -u8 Warning: zsh/example not linked: not checking autoloading
fi
0d:Autoload a module via a builtin

View file

@ -115,7 +115,7 @@ ZTST_hashmark() {
[[ ! -r $ZTST_testname ]] && ZTST_testfailed "can't read test file."
[[ -n $ZTST_verbose && $ZTST_verbose -ge 0 ]] && exec 8>&1
exec 8>&1
exec 9<$ZTST_testname
# The current line read from the test file.