zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: don't run zpty tests on Cygwin
@ 2015-01-14 13:32 Peter Stephenson
  2015-01-14 13:48 ` İsmail Dönmez
  2015-01-14 17:10 ` İsmail Dönmez
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Stephenson @ 2015-01-14 13:32 UTC (permalink / raw)
  To: Zsh Hackers' List

The tests otherwise ran here, but incredibly slowly, so the problem with
the kill didn't show up.  I didn't realise they could run that slowly.

diff --git a/Test/V08zpty.ztst b/Test/V08zpty.ztst
index 5b08fc2..b0cbfa0 100644
--- a/Test/V08zpty.ztst
+++ b/Test/V08zpty.ztst
@@ -6,7 +6,8 @@
   if ! zmodload zsh/zpty 2>/dev/null
   then
     ZTST_unimplemented="the zsh/zpty module is not available"
-    return 0
+  elif [[ $OSTYPE = cygwin ]]; then
+    ZTST_unimplemented="the zsh/zpty module does not work on Cygwin"
   fi
 
 %test
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index a2aa007..383e652 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -1,7 +1,9 @@
 # Tests for completion system.
 
 %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
     mkdir comp.tmp
     cd comp.tmp
diff --git a/Test/Y02compmatch.ztst b/Test/Y02compmatch.ztst
index 7045800..db734fa 100644
--- a/Test/Y02compmatch.ztst
+++ b/Test/Y02compmatch.ztst
@@ -11,7 +11,9 @@
 # contains the compadd output.
 
 %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
     mkdir match.tmp
     cd match.tmp
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst
index bfdcdec..0627104 100644
--- a/Test/Y03arguments.ztst
+++ b/Test/Y03arguments.ztst
@@ -1,7 +1,9 @@
 # Tests for _arguments.
 
 %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
     mkdir comp.tmp
     cd comp.tmp

pws


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

end of thread, other threads:[~2015-01-14 17:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-14 13:32 PATCH: don't run zpty tests on Cygwin Peter Stephenson
2015-01-14 13:48 ` İsmail Dönmez
2015-01-14 14:12   ` Peter Stephenson
2015-01-14 17:00     ` İsmail Dönmez
2015-01-14 17:10 ` İsmail Dönmez
2015-01-14 17:28   ` Peter Stephenson
2015-01-14 17:36     ` İsmail Dönmez

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