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

make check when PWD is set.



`make check' fails if PWD has already symlink AND /bin/sh is bash.
Since bash called by make updates PWD to point Test directory, zsh
accept it.

On the environment which /bin/sh does not update PWD such as Solaris 7,
this problem is not raised.  Of course, it can be raised by invoking
ztst.zsh directly.

Apart from the problem, I think `../Src/zsh ztst.zsh' should be
`../Src/zsh -f ztst.zsh'.

Z:akr@thorax% pwd
/home/akr/z
Z:akr@thorax% =pwd
/home/akr/src/zsh/cvs/zsh
Z:akr@thorax% ls -l /home/akr/z
lrwxrwxrwx    1 akr      akr            15 Sep 12 12:12 /home/akr/z -> src/zsh/cvs/zsh
Z:akr@thorax% echo ${(t)PWD}
scalar-export
Z:akr@thorax% make check
cd Test ; make check
make[1]: Entering directory `/home/akr/src/zsh/cvs/zsh/Test'
for f in *.ztst; do \
  ../Src/zsh ztst.zsh $f; \
done
*** /tmp/zsh.ztst.out.17118     Sun Dec 12 23:35:16 1999
--- /tmp/zsh.ztst.tout.17118    Sun Dec 12 23:35:16 1999
***************
*** 1,2 ****
! /home/akr/z/Test/cdtst.tmp/real
! /home/akr/z/Test/cdtst.tmp/real
--- 1,2 ----
! /home/akr/src/zsh/cvs/zsh/Test/cdtst.tmp/real
! /home/akr/src/zsh/cvs/zsh/Test/cdtst.tmp/real
Test cd.ztst failed: output differs from expected as shown above for:
 setopt chaselinks
 cd cdtst.tmp/sub/fake &&
 pwd &&
 print $PWD
Was testing: Resolving symbolic links with chaselinks set
make[1]: *** [check] Error 1
make[1]: Leaving directory `/home/akr/src/zsh/cvs/zsh/Test'
make: *** [check] Error 2
zsh: exit 2     make check
Z:akr@thorax%  

(unset PWD; make check) works well as:

Z:akr@thorax% (unset PWD; make check)
cd Test ; make check
make[1]: Entering directory `/home/akr/src/zsh/cvs/zsh/Test'
for f in *.ztst; do \
  ../Src/zsh ztst.zsh $f; \
done
cd.ztst: all tests successful.
make[1]: Leaving directory `/home/akr/src/zsh/cvs/zsh/Test'
Z:akr@thorax% 
-- 
Tanaka Akira



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