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

Re: PATCH: don't run zpty tests on Cygwin



On Wed, 14 Jan 2015 19:10:51 +0200
İsmail Dönmez <ismail@xxxxxxxxx> wrote:
> X02zlevi.ztst is also hanging due to zpty.

Missed that.

My own Cygwin test hasn't got that far in the last hour.  It's having
trouble forking processes.  Not ideal.

pws

diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst
index 7bb35d5..6ca047d 100644
--- a/Test/X02zlevi.ztst
+++ b/Test/X02zlevi.ztst
@@ -1,7 +1,9 @@
 # Tests of the vi mode of ZLE
 
 %prep
-  if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then
+  if [[ $OSTYPE = cygwin ]]; then
+    ZTST_unimplemented="the zsh/zpty module does not work on Cygwin"
+  elif ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then
     . $ZTST_srcdir/comptest
     comptestinit -v -z $ZTST_testdir/../Src/zsh
   else



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