Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: pwd -r vs. pwd test failure



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


Messages sorted by: Reverse Date, Date, Thread, Author