* PATCH: minor tests cleanup and _zmodload patch
@ 2000-08-14 10:49 Andrej Borsenkow
0 siblings, 0 replies; only message in thread
From: Andrej Borsenkow @ 2000-08-14 10:49 UTC (permalink / raw)
To: ZSH workers mailing list
In case of completion tests ztst.zsh tried to remove test directory when child
command was still active and had it as current one. This is an error under
Cygwin (actually, NT, may be Win9x as well).
Patch adds %clean section that unloads zpty killing (hopefully) any child
command.
Small hunk for _zmodload just adds DLL to suffix list.
-andrej
Have a nice DOS!
B >>
Index: Completion/Builtins/_zmodload
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Builtins/_zmodload,v
retrieving revision 1.3
diff -u -r1.3 _zmodload
--- Completion/Builtins/_zmodload 2000/08/08 09:13:36 1.3
+++ Completion/Builtins/_zmodload 2000/08/14 10:44:59
@@ -10,7 +10,7 @@
_tags files aliases
while _tags; do
_requested files expl 'module file' \
- _files -W module_path -/g '*.s[ol](:r)' && ret=0
+ _files -W module_path -/g '*.(dll|s[ol])(:r)' && ret=0
_requested aliases expl 'module alias' \
compadd -- ${${(f)"$(zmodload -A)"}%% *} && ret=0
(( ret )) || break
Index: Test/53completion.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/53completion.ztst,v
retrieving revision 1.7
diff -u -r1.7 53completion.ztst
--- Test/53completion.ztst 2000/07/17 10:36:00 1.7
+++ Test/53completion.ztst 2000/08/14 10:44:59
@@ -49,3 +49,7 @@
>DI:{dir2}
>FI:{file1}
>FI:{file2}
+
+%clean
+
+ zmodload -ui zsh/zpty
Index: Test/54compmatch.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/54compmatch.ztst,v
retrieving revision 1.4
diff -u -r1.4 54compmatch.ztst
--- Test/54compmatch.ztst 2000/06/19 10:48:22 1.4
+++ Test/54compmatch.ztst 2000/08/14 10:44:59
@@ -510,4 +510,5 @@
>COMPADD:{}
%clean
-exit 0
+
+ zmodload -ui zsh/zpty
Index: Test/55arguments.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/55arguments.ztst,v
retrieving revision 1.2
diff -u -r1.2 55arguments.ztst
--- Test/55arguments.ztst 2000/07/27 13:06:19 1.2
+++ Test/55arguments.ztst 2000/08/14 10:44:59
@@ -144,3 +144,6 @@
>NO:{abyyy}
>NO:{abzzz}
+%clean
+
+ zmodload -ui zsh/zpty
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-08-14 10:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-14 10:49 PATCH: minor tests cleanup and _zmodload patch Andrej Borsenkow
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).