about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2001-05-30 10:56:42 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2001-05-30 10:56:42 +0000
commit475ba659a2833126297334d673d9050ddf606e70 (patch)
tree4663c4d2aaa1c0e366b1e7c87a42828e4ad87519
parent7ea08d144e5f0f4538f8615eaf6df48cfd674466 (diff)
downloadzsh-475ba659a2833126297334d673d9050ddf606e70.tar.gz
zsh-475ba659a2833126297334d673d9050ddf606e70.tar.xz
zsh-475ba659a2833126297334d673d9050ddf606e70.zip
14566: more testing for unimplemented features.
-rw-r--r--ChangeLog3
-rw-r--r--Test/C02cond.ztst30
2 files changed, 27 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index c1f6a6501..79e651024 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-05-30  Andrej Borsenkow  <bor@zsh.org>
 
+	* 14566: Test/C02cond.ztst: more testing for unimplemented
+	features.
+
 	* 14557: INSTALL: remove 3.1 version number
 
 2001-05-30  Sven Wischnowsky  <wischnow@zsh.org>
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 28305795f..f4607b774 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -21,6 +21,9 @@
 
   touch unmodish
   chmod 000 unmodish
+
+  print 'MZ' > cmd.exe
+  chmod +x cmd.exe
 %test
 
   [[ -a zerolength && ! -a nonexistent ]]
@@ -92,7 +95,7 @@
   [[ -u modish && ! -u zerolength ]]
 0:-u cond
 
-  [[ -x $ZTST_srcdir/ztst.zsh && ! -x zerolength ]]
+  [[ -x cmd.exe && ! -x zerolength ]]
 0:-x cond
 
   [[ -z $bar && -z '' && ! -z $foo ]]
@@ -113,7 +116,12 @@
   sleep 1
   cat unmodified
   touch newnewnew
-  [[ -N newnewnew && ! -N unmodified ]]
+  if [[ $OSTYPE == "cygwin" ]]; then
+    print -u8 "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
+    true
+  else
+    [[ -N newnewnew && ! -N unmodified ]]
+  fi
 0:-N cond
 
   [[ newnewnew -nt zerolength && ! (unmodified -nt zerolength) ]]
@@ -146,11 +154,21 @@
   [[ 1 -lt 2 || 2 -lt 2 && 3 -gt 4 ]]
 0:|| and && in conds
 
-  [[ -e /dev/fd/0 ]]
-0:/dev/fd support in conds handled by access
+  if ! grep '#define PATH_DEV_FD' $ZTST_testdir/../config.h; then
+    print -u8 "Warning: not testing [[ -e /dev/fd/0 ]] (/dev/fd not supported)"
+    true
+  else
+    [[ -e /dev/fd/0 ]]
+  fi
+0dD:/dev/fd support in conds handled by access
 
-  [[ -O /dev/fd/0 ]]
-0:/dev/fd support in conds handled by stat
+  if ! grep '#define PATH_DEV_FD' $ZTST_testdir/../config.h; then
+    print -u8 "Warning: not testing [[ -O /dev/fd/0 ]] (/dev/fd not supported)"
+    true
+  else
+    [[ -O /dev/fd/0 ]]
+  fi
+0dD:/dev/fd support in conds handled by stat
 
   [[ ( -z foo && -z foo ) || -z foo ]]
 1:complex conds with skipping