zsh-workers
 help / color / mirror / code / Atom feed
From: Vin Shelton <acs@alumni.princeton.edu>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Re: pwd -r vs. pwd test failure
Date: Fri, 27 Mar 2020 07:56:07 -0400	[thread overview]
Message-ID: <CACeGjnW8E__s9BMLNAbtxo8e+v99C+0V1_5yAsvis+js9oB+2w@mail.gmail.com> (raw)
In-Reply-To: <20200326220250.11861abd@tarpaulin.shahaf.local2>

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

Almost, but not quite:

: build/zsh-2020-03-27 Fri 27 7:47; ZTST_verbose=2 make TESTNUM=B13 -e check
cd Test ; make check
make[1]: Entering directory '/SSD-2/opt/build/zsh-2020-03-27/Test'
if test -n "gcc"; then \
  cd .. && DESTDIR= \
  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
if test -z "$ZTST_handler"; then \
  ZTST_handler=runtests.zsh; \
fi; \
if ZTST_testlist="`for f in ../../../src/zsh-2020-03-27/Test/B13*.ztst; \
           do echo $f; done`" \
 ZTST_srcdir="../../../src/zsh-2020-03-27/Test" \
 ZTST_exe=../Src/zsh \
 ../Src/zsh +Z -f ../../../src/zsh-2020-03-27/Test/$ZTST_handler; then \
 stat=0; \
else \
 stat=1; \
fi; \
sleep 1; \
rm -rf Modules .zcompdump; \
exit $stat
../../../src/zsh-2020-03-27/Test/B13whence.ztst: starting.
ZTST_getsect: read section name: prep
ZTST_getchunk: read code chunk:
  mkdir whence.tmp
  ln -s . whence.tmp/cwd
  # cd through the symlink in order to test the case that ${prefix} and
  # ${prefix:P} are different
  pushd whence.tmp/cwd
  ln -s real step3
  ln -s step3 step2
  ln -s step2 step1
  ln -s loop loop
  ln -s flip flop
  ln -s flop flip
  touch real
  chmod +x real
  prefix=$PWD
  popd
ZTST_execchunk: status 0
ZTST_getchunk: read code chunk:

ZTST_getsect: read section name: test
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  (
ZTST_getchunk: read code chunk:
  (
    path=( $PWD/whence.tmp $path )
    whence -S step1
    whence -s step1
  )
ZTST_test: examining line:
>${prefix:P}/step1 -> ${prefix:P}/step2 -> ${prefix:P}/step3 ->
${prefix:P}/real
ZTST_getredir: read redir for '>':
${prefix:P}/step1 -> ${prefix:P}/step2 -> ${prefix:P}/step3 ->
${prefix:P}/real
${prefix:P}/step1 -> ${prefix:P}/real
ZTST_test: examining line:

Running test: whence symlink resolution
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.606947/ztst.in, output: /tmp/zsh.ztst.606947/ztst.out,
error: /tmp/zsh.ztst.606947/ztst.terr
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step2 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step3 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/real
/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/real
ZTST_test: and standard error:

--- /tmp/zsh.ztst.606947/ztst.out 2020-03-27 07:48:54.836700073 -0400
+++ /tmp/zsh.ztst.606947/ztst.tout 2020-03-27 07:48:54.833366739 -0400
@@ -1,2 +1,2 @@
-/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step2 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step3 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/real
-/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/real
+/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step2 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/step3 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/real
+/opt/build/zsh-2020-03-27/Test/whence.tmp/step1 ->
/SSD-2/opt/build/zsh-2020-03-27/Test/whence.tmp/real
Test ../../../src/zsh-2020-03-27/Test/B13whence.ztst failed: output differs
from expected as shown above for:
  (
    path=( $PWD/whence.tmp $path )
    whence -S step1
    whence -s step1
  )
Was testing: whence symlink resolution
../../../src/zsh-2020-03-27/Test/B13whence.ztst: test failed.
**************************************
0 successful test scripts, 1 failure, 0 skipped
**************************************
make[1]: *** [Makefile:190: check] Error 1
make[1]: Leaving directory '/SSD-2/opt/build/zsh-2020-03-27/Test'
make: *** [Makefile:263: check] Error 2

Thanks!

  - Vin

  reply	other threads:[~2020-03-27 11:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26 12:22 Vin Shelton
2020-03-26 22:02 ` Daniel Shahaf
2020-03-27 11:56   ` Vin Shelton [this message]
2020-03-27 23:11     ` Daniel Shahaf
2020-03-28  0:20       ` Vin Shelton
2020-03-28  0:57         ` Daniel Shahaf
2020-03-28  1:17           ` Vin Shelton

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=CACeGjnW8E__s9BMLNAbtxo8e+v99C+0V1_5yAsvis+js9oB+2w@mail.gmail.com \
    --to=acs@alumni.princeton.edu \
    --cc=d.s@daniel.shahaf.name \
    --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).