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

PATCH: minor tests cleanup and _zmodload patch



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



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