summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--Test/V01zmodload.ztst6
-rwxr-xr-xTest/ztst.zsh2
3 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 44d76b45f..cee8cd531 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/Test/V01zmodload.ztst b/Test/V01zmodload.ztst
index 2575b271c..0828102a6 100644
--- a/Test/V01zmodload.ztst
+++ b/Test/V01zmodload.ztst
@@ -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 --git a/Test/ztst.zsh b/Test/ztst.zsh
index 9d9ad5f3c..ea9d18a08 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -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.