Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test/V01zmodload.ztst



A couple of tweaks:

Several of the tests now send output to fd 8, but fd 8 was only opened
when $ZTST_verbose was non-empty and -ge 0.  So you could for example
break the tests with `ZTST_verbose=-1 make check'.

The V01* hunk fixes a typo in a comment, and warns when some of the tests
are being skipped.

diff -u zsh-forge/current/Test/V01zmodload.ztst zsh-4.0/Test/V01zmodload.ztst
--- zsh-forge/current/Test/V01zmodload.ztst	Fri May 18 05:08:08 2001
+++ zsh-4.0/Test/V01zmodload.ztst	Fri May 18 09:01:30 2001
@@ -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
 
diff -u zsh-forge/current/Test/ztst.zsh zsh-4.0/Test/ztst.zsh
--- zsh-forge/current/Test/ztst.zsh	Fri May 11 18:38:13 2001
+++ zsh-4.0/Test/ztst.zsh	Fri May 18 08:57:33 2001
@@ -115,7 +115,7 @@
 
 [[ ! -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.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author