Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Five New Test Failures
- X-seq: zsh-workers 46189
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Five New Test Failures
- Date: Sun, 5 Jul 2020 10:22:52 -0700
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- In-reply-to: <CAH+w=7ZOQj_x65=y8wD8MB1u4uhQ-YV5S4Avz6d326=UsobDxw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CACeGjnUn+0CRiJGK2MCfm0xRvhXDB_dYoFcADW4u21s2A+F=uw@mail.gmail.com> <CAH+w=7bv_TF7OdoWqEQi1L8GtMBHyAhNZL-oaysV2X4peUxeJw@mail.gmail.com> <CAH+w=7ZOQj_x65=y8wD8MB1u4uhQ-YV5S4Avz6d326=UsobDxw@mail.gmail.com>
- Sender: zsh-workers@xxxxxxx
On Sun, Jul 5, 2020 at 9:57 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Jul 5, 2020 at 9:28 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > It's the change to supposedly subvert symlink attacks.
>
> Hmm, no, I'm getting random failures even after I revert. Sorry for
> the red herring.
Ahem. Those failures were something else in my environment.
It does have to do with the "always" block. All the tests pass if I
just put a "return 0" after the "always".
A bit of further digging indicates that
zpty_flush After comptesteval
does not always succeed, but it doesn't need to. The "always" is now
preserving that failure status.
So perhaps this?
diff --git a/Test/comptest b/Test/comptest
index b14d4c9..a36e301 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -128,6 +128,7 @@ comptesteval () {
return 1
}
zpty_flush After comptesteval
+ : Suppress error from zpty_flush
} always {
rm $tmp
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author