about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-06-25 03:06:33 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-06-25 03:06:33 +0000
commit50f88338e67084fa31be6843d47bd4d675458e7a (patch)
treec773e8d4342bf45cd3f1863567a4ed9f632932f2
parentf0dd0ced30845735c9d3922a706ff3a508b3c0b6 (diff)
downloadzsh-50f88338e67084fa31be6843d47bd4d675458e7a.tar.gz
zsh-50f88338e67084fa31be6843d47bd4d675458e7a.tar.xz
zsh-50f88338e67084fa31be6843d47bd4d675458e7a.zip
Assorted "make check" tweaks.
-rw-r--r--ChangeLog7
-rw-r--r--Test/A02alias.ztst2
-rw-r--r--Test/Y01completion.ztst5
-rw-r--r--Test/Y02compmatch.ztst12
-rw-r--r--Test/Y03arguments.ztst4
-rw-r--r--Test/comptest2
6 files changed, 20 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index ead54661d..346f2fd5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2001-06-24  Bart Schaefer  <schaefer@zsh.org>
 
+	* 15060: Test/A02alias.ztst: Change expected return value to
+	account for 15050.
+
+	* 15060: Test/Y01completion.ztst, Test/Y02compmatch.ztst,
+	Test/Y03arguments.ztst, Test/comptest: Abandon the tests during
+	the %prep section if the zpty module can't be loaded.	
+
 	* 15057: Src/exec.c: PRINT_EXIT_VALUE for shell functions, too.
 
 2001-06-23  Bart Schaefer  <schaefer@zsh.org>
diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst
index 03c0a6cc1..74d454a8c 100644
--- a/Test/A02alias.ztst
+++ b/Test/A02alias.ztst
@@ -15,7 +15,7 @@
 >echo
 
   \foo foo
-1:Not aliasing
+127:Not aliasing
 ?ZTST_execchunk:2: command not found: foo
 
   \bar \bar
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index bf80b6614..0dfb6c074 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -6,12 +6,13 @@
   mkdir comp.tmp
   cd comp.tmp
 
-  comptestinit -z $ZTST_testdir/../Src/zsh
-
+  comptestinit -z $ZTST_testdir/../Src/zsh &&
+  {
   mkdir dir1
   mkdir dir2
   touch file1
   touch file2
+  }
 
 %test
 
diff --git a/Test/Y02compmatch.ztst b/Test/Y02compmatch.ztst
index f726923e8..4d4e0c0fa 100644
--- a/Test/Y02compmatch.ztst
+++ b/Test/Y02compmatch.ztst
@@ -16,10 +16,10 @@
   mkdir match.tmp
   cd match.tmp
 
-  comptestinit -z $ZTST_testdir/../Src/zsh
-
-  list1=(IndianRed IndianRed2 IndianRed3 IndianRed4)
-  test_code () {
+  comptestinit -z $ZTST_testdir/../Src/zsh &&
+  {
+    list1=(IndianRed IndianRed2 IndianRed3 IndianRed4)
+    test_code () {
 	matcher=$1;
 	list=$2;
 	code="compdef _tst tst ; _tst () { echo -n '<COMPADD>';compadd -M '"
@@ -31,12 +31,10 @@
         code="$code; echo -n '</INSERT_POSITIONS>'"
         code="$code}"
 	comptesteval "$code"
+    }
   }
 
 
-
-	 
-
 %test
 
  test_code z: list1
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst
index 26c6db266..634b8b083 100644
--- a/Test/Y03arguments.ztst
+++ b/Test/Y03arguments.ztst
@@ -6,9 +6,11 @@
   mkdir comp.tmp
   cd comp.tmp
 
-  comptestinit -z $ZTST_testdir/../Src/zsh
+  comptestinit -z $ZTST_testdir/../Src/zsh &&
+  {
   comptesteval 'compdef _tst tst'
   tst_arguments () { comptesteval "_tst () { _arguments ${${(@qq)*}} }" }
+  }
 
 %test
  tst_arguments ':desc1:(arg1)'
diff --git a/Test/comptest b/Test/comptest
index d65ea351a..4ea738d8a 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -5,7 +5,7 @@ comptestinit () {
           $ZTST_srcdir/../Completion
           $ZTST_srcdir/../Completion/*/*~*/CVS(/) )
 
-  zmodload -i zsh/zpty
+  zmodload -i zsh/zpty || return $?
 
   comptest_zsh=${ZSH:-zsh}