From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: Skipping gdbm test
Date: Fri, 03 Mar 2017 10:14:50 +0000 [thread overview]
Message-ID: <20170303101450.529af846@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20170303095515.GA3953@fujitsu.shahaf.local2>
On Fri, 3 Mar 2017 09:55:15 +0000
Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> I think the proposal was to removal lines 2,3 but keep lines 1,4:
>
> >>>> 1 /opt/src/zsh-2017-03-01/Test/V11db_gdbm.ztst: starting.
> >>>> 2 (eval):3: failed to load module `zsh/db/gdbm':
> >>>> 3 /opt/build/zsh-2017-03-01/Test/Modules/zsh/db/gdbm.so: cannot open shared object file: No such file or directory
> >>>> 4 /opt/src/zsh-2017-03-01/Test/V11db_gdbm.ztst: skipped (can't load zsh/db/gdbm module for testing)
>
> Personally I think it'd be good to hide that particular
> error message; line 4 tells the user what he needs to know.
Oh, yes, we don't need the shell error message, since it's not a hard
test error. The skipped message from the test system is enough. This
is how various of the other module tests work.
pws
diff --git a/Test/V11db_gdbm.ztst b/Test/V11db_gdbm.ztst
index 486ad48..1d80f28 100644
--- a/Test/V11db_gdbm.ztst
+++ b/Test/V11db_gdbm.ztst
@@ -4,7 +4,7 @@
modname="zsh/db/gdbm"
dbfile=db.gdbm
- if ! zmodload $modname ; then
+ if ! zmodload $modname 2>/dev/null; then
ZTST_unimplemented="can't load $modname module for testing"
fi
rm -f db.gdbm
prev parent reply other threads:[~2017-03-03 10:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170302145932epcas5p18f7477866f38d8bbc75a640afffa04cd@epcas5p1.samsung.com>
2017-03-01 19:41 ` Vin Shelton
2017-03-02 15:05 ` Peter Stephenson
2017-03-02 16:17 ` Sebastian Gniazdowski
2017-03-03 9:19 ` Peter Stephenson
2017-03-03 9:55 ` Daniel Shahaf
2017-03-03 10:14 ` Peter Stephenson [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=20170303101450.529af846@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/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).