zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] Tests for 50126, 50136, and 50149
Date: Mon, 2 May 2022 13:59:22 +0900	[thread overview]
Message-ID: <763A1D7A-AE66-42C0-8BB5-2745107A3112@kba.biglobe.ne.jp> (raw)
In-Reply-To: <CAH+w=7ZJi=FbkvJUt6rT2R3i5NZ1VUOJ1JPdcepbkS4ib=M_og@mail.gmail.com>

On one of my Mac, running macOS Monterey (11.1) on Apple M1 CPU,
E01options fails as shown below (output with ZTST_verbose=2).
The test passes on another Mac, macOS Mojave (10.14.6) with intel CPU.
Anyone using macOS please test on your Mac to see it fails or not.


Running test: regression test: multios with nullexec
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.51589/ztst.in, output: /tmp/zsh.ztst.51589/ztst.out, error: /tmp/zsh.ztst.51589/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:

ZTST_test: and standard error:

--- /tmp/zsh.ztst.51589/ztst.out    2022-05-02 13:24:56.000000000 +0900
+++ /tmp/zsh.ztst.51589/ztst.tout   2022-05-02 13:24:56.000000000 +0900
@@ -1 +0,0 @@
-some words
Test ./E01options.ztst failed: output differs from expected as shown above for:
  ( exec 3>&1 3>&2; print -u 3 some words )
Error output:
some words
Was testing: regression test: multios with nullexec
./E01options.ztst: test failed.


Note the two empty lines after "ZTST_test: test produced standard output:"
and "ZTST_test: and standard error:". This means at this point ztsts.{tout,terr}
are both empty.
But after the diff output, it says:
Error output:
some words
so at this point ztst.terr does have the correct data "some words"...?

If I add a "sleep 1" after ( exec ... ):

   ( exec 3>&1 3>&2; print -u 3 some words )
   sleep 1

then the test passes. But not sure whether this is a correct fix.

  reply	other threads:[~2022-05-02  5:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-30 18:31 A second test release before 5.9 final? Bart Schaefer
2022-04-30 21:41 ` dana
2022-05-01 14:52 ` Daniel Shahaf
2022-05-01 16:50   ` Bart Schaefer
2022-05-01 17:38     ` Daniel Shahaf
2022-05-02  2:24       ` Jun T
2022-05-02  3:10         ` Bart Schaefer
2022-05-02  4:09           ` Jun T
2022-05-02 12:58           ` Daniel Shahaf
2022-05-01 17:49     ` Peter Stephenson
2022-05-01 18:09     ` [PATCH] Test for 50101 Bart Schaefer
2022-05-01 19:09     ` [PATCH] Tests for 50126, 50136, and 50149 Bart Schaefer
2022-05-02  4:59       ` Jun T [this message]
2022-05-02  5:15         ` Bart Schaefer
2022-05-02  5:46           ` Jun T
2022-05-02 13:14         ` Jun. T
2022-05-02 16:26           ` Bart Schaefer

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=763A1D7A-AE66-42C0-8BB5-2745107A3112@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --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).