zsh-workers
 help / color / mirror / code / Atom feed
* make check when PWD is set.
@ 1999-12-12 15:02 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 1999-12-12 15:02 UTC (permalink / raw)
  To: zsh-workers

`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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-12 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-12 15:02 make check when PWD is set Tanaka Akira

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).