zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Fix ZDOTDIR during "make check" for static builds
@ 2000-07-03 18:34 Bart Schaefer
  2000-07-04  8:29 ` Test hanger disappeared, but ... " Andrej Borsenkow
  2000-07-04 17:01 ` PATCH: Fix ZDOTDIR during "make check" for static builds Andrej Borsenkow
  0 siblings, 2 replies; 5+ messages in thread
From: Bart Schaefer @ 2000-07-03 18:34 UTC (permalink / raw)
  To: zsh-workers

When I made my earlier patch for this (12039), I forgot that Test/Modules
doesn't get created when the build is static.

This points ZDOTDIR into the Test directory itself (in the build tree, if
that's separate from the source), and therefore also has to make sure that
the .zcompdump file is removed at the end.

Index: Test/Makefile.in
===================================================================
@@ -48,7 +48,7 @@
 	for f in $(sdir)/$(TESTNUM)*.ztst; do \
 	  $(dir_top)/Src/zsh -f $(sdir)/ztst.zsh $$f; \
 	done
-	rm -rf Modules
+	rm -rf Modules .zcompdump
 
 # ========== DEPENDENCIES FOR CLEANUP ==========
 
Index: Test/comptest
===================================================================
@@ -25,7 +25,7 @@
   }
 
   comptesteval \
-"export ZDOTDIR=$ZTST_testdir/Modules" \
+"export ZDOTDIR=$ZTST_testdir" \
 "module_path=( $module_path )" \
 "fpath=( $fpath )" \
 'LISTMAX=10000000

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Test hanger disappeared, but ... RE: PATCH: Fix ZDOTDIR during "make check" for static builds
  2000-07-03 18:34 PATCH: Fix ZDOTDIR during "make check" for static builds Bart Schaefer
@ 2000-07-04  8:29 ` Andrej Borsenkow
  2000-07-04 15:58   ` PATCH: compdump (Re: Test hanger disappeared, but ...) Bart Schaefer
  2000-07-04 17:01 ` PATCH: Fix ZDOTDIR during "make check" for static builds Andrej Borsenkow
  1 sibling, 1 reply; 5+ messages in thread
From: Andrej Borsenkow @ 2000-07-04  8:29 UTC (permalink / raw)
  To: Bart Schaefer, zsh-workers


>
> When I made my earlier patch for this (12039), I forgot that
> Test/Modules
> doesn't get created when the build is static.
>
> This points ZDOTDIR into the Test directory itself (in the
> build tree, if
> that's separate from the source), and therefore also has to
> make sure that
> the .zcompdump file is removed at the end.
>

May be, it is something different - but now completion tests do not hang
anymore. I run them on Unix without any problems; but on Cygwin I get
misterious errors:

mw1g017@MW1G17C:/usr/build/zsh/Test% /usr/build/zsh/Src/zsh -f
/usr/src/zsh/Test
/ztst.zsh /usr/src/zsh/Test/53completion.ztst
*** /tmp/zsh.ztst.out.1007      Tue Jul  4 12:24:39 2000
--- /tmp/zsh.ztst.tout.1007     Tue Jul  4 12:24:49 2000
***************
*** 1,12 ****
- line: {: }{}
  DESCRIPTION:{file}
  DI:{dir1}
  DI:{dir2}
  FI:{file1}
  FI:{file2}
- line: {: dir1/}{}
- line: {: dir2/}{}
- line: {: file1}{}
- line: {: file2}{}
- line: {: dir1/}{}
- line: {: dir2/}{}
--- 1,5 ----
Test /usr/src/zsh/Test/53completion.ztst failed: output differs from
expected as
 shown above for:
  comptest $': \t\t\t\t\t\t\t'
Was testing: directories and files
/usr/src/zsh/Test/53completion.ztst: test failed.
rm: /usr/build/zsh/Test/comp.tmp: Permission denied
mw1g017@MW1G17C:/usr/build/zsh/Test% print $CYGWIN
title strip_title tty

I thought, it may have something to do with CYGWIN setting (tty/notty) -
but the error happens with both settings.

The "permission denied" message most probably comes, because some child
has comp.tmp open at the time comptest tries to delete it.

It all smells much like some tty emulation problem. Sigh.

-andrej


^ permalink raw reply	[flat|nested] 5+ messages in thread

* PATCH: compdump (Re: Test hanger disappeared, but ...)
  2000-07-04  8:29 ` Test hanger disappeared, but ... " Andrej Borsenkow
@ 2000-07-04 15:58   ` Bart Schaefer
  0 siblings, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 2000-07-04 15:58 UTC (permalink / raw)
  To: Andrej Borsenkow, zsh-workers

On Jul 4, 12:29pm, Andrej Borsenkow wrote:
} 
} > When I made my earlier patch for this (12039), I forgot that
} > Test/Modules doesn't get created when the build is static.
} 
} May be, it is something different - but now completion tests do not hang
} anymore.

It looks like compdump failure causes compinit to abort completely when
ZDOTDIR points to a nonexistent location.  The redirection on line 34
prints "no such file or directory" and then everything stops.

We seem to be running into a lot of things that cause zsh to abort all
the way back to top level.  Do other shells give up so thoroughly in
these situations?

Index: Completion/Core/compdump
===================================================================
@@ -21,6 +21,8 @@
 _d_file=${_comp_dumpfile-${0:h}/compinit.dump}.$HOST.$$
 [[ $_d_file = //* ]] && _d_file=${_d_file[2,-1]}
 
+[[ -w ${_d_file:h} ]] || return 1
+
 _d_files=( ${^~fpath:/.}/^([^_]*|*~|*.zwc)(N) )
 
 if [[ -n "$_comp_secure" ]]; then

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: PATCH: Fix ZDOTDIR during "make check" for static builds
  2000-07-03 18:34 PATCH: Fix ZDOTDIR during "make check" for static builds Bart Schaefer
  2000-07-04  8:29 ` Test hanger disappeared, but ... " Andrej Borsenkow
@ 2000-07-04 17:01 ` Andrej Borsenkow
  2000-07-05  4:31   ` Bart Schaefer
  1 sibling, 1 reply; 5+ messages in thread
From: Andrej Borsenkow @ 2000-07-04 17:01 UTC (permalink / raw)
  To: Bart Schaefer, zsh-workers

>
> This points ZDOTDIR into the Test directory itself (in the
> build tree, if
> that's separate from the source), and therefore also has to
> make sure that
> the .zcompdump file is removed at the end.
>

If the very last test fails,  neither .zcompdump nor Modules directory
are removed. Obviously, for loop returns status of last executed
command. I forgot, how to force make to ignore it :-(

-andrej


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PATCH: Fix ZDOTDIR during "make check" for static builds
  2000-07-04 17:01 ` PATCH: Fix ZDOTDIR during "make check" for static builds Andrej Borsenkow
@ 2000-07-05  4:31   ` Bart Schaefer
  0 siblings, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 2000-07-05  4:31 UTC (permalink / raw)
  To: Andrej Borsenkow, zsh-workers

On Jul 4,  9:01pm, Andrej Borsenkow wrote:
} Subject: RE: PATCH: Fix ZDOTDIR during "make check" for static builds
}
} If the very last test fails,  neither .zcompdump nor Modules directory
} are removed.  [...]  I forgot, how to force make to ignore it :-(

Like this.

Index: Test/Makefile.in
===================================================================
@@ -45,7 +45,7 @@
 	  cd $(dir_top) && \
 	  $(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \
 	fi
-	for f in $(sdir)/$(TESTNUM)*.ztst; do \
+	-for f in $(sdir)/$(TESTNUM)*.ztst; do \
 	  $(dir_top)/Src/zsh -f $(sdir)/ztst.zsh $$f; \
 	done
 	rm -rf Modules .zcompdump

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-07-05  4:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-03 18:34 PATCH: Fix ZDOTDIR during "make check" for static builds Bart Schaefer
2000-07-04  8:29 ` Test hanger disappeared, but ... " Andrej Borsenkow
2000-07-04 15:58   ` PATCH: compdump (Re: Test hanger disappeared, but ...) Bart Schaefer
2000-07-04 17:01 ` PATCH: Fix ZDOTDIR during "make check" for static builds Andrej Borsenkow
2000-07-05  4:31   ` Bart Schaefer

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