help / color / Atom feed
From: Vin Shelton <acs@alumni.princeton.edu>
To: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Occasional Test Failure
Date: Sun, 1 Dec 2019 08:26:54 -0500
Message-ID: <CACeGjnWo6nCuquJruGTyH4xpYUBMSSrGrbYNMR7bN0JBGXECxg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2207 bytes --]

FYI. Usually I get 53 passed tests, but occasionally (~ once / month), I
get 52 passes and one failure. I cannot boost the verbosity because the
race condition is not repeatable. Here is the failure; when I re-ran the
tests, I got 53 passes.

Test ../../../src/zsh-2019-12-01/Test/C02cond.ztst failed: bad status 1,
expected 0 from:
  if [[ ${mtab::="$({mount || /sbin/mount || /usr/sbin/mount}
2>/dev/null)"} = *[(]?*[)] ]]; then
    print -u $ZTST_fd 'This test takes two seconds...'
    unmodified_ls="$(ls -lu $unmodified)"
    print -u $ZTST_fd 'This test takes up to 60 seconds...'
  sleep 2
  touch $newnewnew
  if [[ $OSTYPE == "cygwin" ]]; then
    ZTST_skip="[[ -N file ]] not supported on Cygwin"
  elif (( isnfs )); then
    ZTST_skip="[[ -N file ]] not supported with NFS"
  elif { (( ! $+unmodified_ls )) &&
         cat $unmodified &&
         { df -k -- ${$(print -r -- "$mtab" |
                        awk '/noatime/ {print $1,$3}'):-""} | tr -s ' ' |
           fgrep -- "$(df -k . | tail -1 | tr -s ' ')" } >&/dev/null } ||
       { (( $+unmodified_ls )) && SECONDS=0 &&
         ! until (( SECONDS >= 58 )); do
             ZTST_hashmark; sleep 2; cat $unmodified
             [[ $unmodified_ls != "$(ls -lu $unmodified)" ]] && break
 done }; then
    ZTST_skip="[[ -N file ]] not supported with noatime file system"
    [[ -N $newnewnew && ! -N $unmodified ]]
Was testing: -N cond
../../../src/zsh-2019-12-01/Test/C02cond.ztst: test failed.
The following may (or may not) help identifying the cause:
  This test can fail on NFS-mounted filesystems as the access and
  modification times are not updated separately.  The test will fail
  on HFS+ (Apple Mac OS X default) filesystems because access times
  are not recorded.  Also, Linux ext3 filesystems may be mounted
  with the noatime option which does not update access times.
  Failures in these cases do not indicate a problem in the shell.
../../../src/zsh-2019-12-01/Test/C03traps.ztst: starting.
This test takes at least three seconds...
This test, too, takes at least three seconds...
Another test that takes three seconds
../../../src/zsh-2019-12-01/Test/C03traps.ztst: all tests successful.

  - Vin

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically 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:

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

  git send-email \
    --in-reply-to=CACeGjnWo6nCuquJruGTyH4xpYUBMSSrGrbYNMR7bN0JBGXECxg@mail.gmail.com \
    --to=acs@alumni.princeton.edu \
    --cc=zsh-workers@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git