about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-01-14 14:24:01 +0000
committerPeter Stephenson <pws@zsh.org>2015-01-14 14:25:18 +0000
commit455f8519b217837f67f33d2f70c817fdecd43be3 (patch)
tree74d32ee93c9e4fdc1425622b8d3fecf6ac1089f0 /Test
parent9fcc9d6e8dd778007c0dd51860651f8256c6640c (diff)
downloadzsh-455f8519b217837f67f33d2f70c817fdecd43be3.tar.gz
zsh-455f8519b217837f67f33d2f70c817fdecd43be3.tar.xz
zsh-455f8519b217837f67f33d2f70c817fdecd43be3.zip
34275: assume zpty can't be used for testing Cygwin
Diffstat (limited to 'Test')
-rw-r--r--Test/V08zpty.ztst3
-rw-r--r--Test/Y01completion.ztst4
-rw-r--r--Test/Y02compmatch.ztst4
-rw-r--r--Test/Y03arguments.ztst4
4 files changed, 11 insertions, 4 deletions
diff --git a/Test/V08zpty.ztst b/Test/V08zpty.ztst
index 5b08fc281..b0cbfa050 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 a2aa00717..383e6529f 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 704580043..db734facc 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 bfdcdec63..0627104f5 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