zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: Test/V01zmodload.ztst
Date: Fri, 18 May 2001 16:05:07 +0000	[thread overview]
Message-ID: <1010518160507.ZM5026@candle.brasslantern.com> (raw)
In-Reply-To: <Tc0a88d015398a53407@mailsweeper01.cambridgesiliconradio.com>

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   


      reply	other threads:[~2001-05-18 16:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-18 12:11 Test/V01zmodload.ztst Bart Schaefer
2001-05-18 13:06 ` Test/V01zmodload.ztst Peter Stephenson
2001-05-18 16:05   ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1010518160507.ZM5026@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).