about summary refs log tree commit diff
path: root/Test/comptest
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-01 17:14:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-01 17:14:54 +0000
commit51d6a607947365aa812dfbf68e72a2945848f6d6 (patch)
tree9ff7ebf87053547745224ddc255dab96a13b8ecd /Test/comptest
parent3bb99611690daff27e914c04f8976057b8247fd3 (diff)
downloadzsh-51d6a607947365aa812dfbf68e72a2945848f6d6.tar.gz
zsh-51d6a607947365aa812dfbf68e72a2945848f6d6.tar.xz
zsh-51d6a607947365aa812dfbf68e72a2945848f6d6.zip
zsh-workers/9960
Diffstat (limited to 'Test/comptest')
-rw-r--r--Test/comptest18
1 files changed, 14 insertions, 4 deletions
diff --git a/Test/comptest b/Test/comptest
index e8f1ffef6..d9c3c40d0 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -54,6 +54,7 @@ list-choices-with-report () {
 }
 finish () {
   print "<WIDGET><finish>"
+  sleep 1
   exit 0
 }
 zle -N expand-or-complete-with-report
@@ -68,14 +69,23 @@ End
 export PS1="<PROMPT>"
 zpty zsh "$zsh" -f
 
-zpty -r zsh log "*<PROMPT>*"
+zpty -r zsh log1 "*<PROMPT>*" || { 
+  print first prompt doesn\'t appered.
+  exit 1
+}
 
 zpty -w zsh ". $tmp"
-zpty -r zsh log "*<PROMPT>*"
+zpty -r zsh log2 "*<PROMPT>*" || {
+  print second prompt doesn\'t appered.
+  exit 1
+}
 rm $tmp
 
-zpty -w zsh "$input"$'\C-Z'
-zpty -r zsh log "*<WIDGET><finish>*"
+zpty -n -w zsh "$input"$'\C-Z'
+zpty -r zsh log "*<WIDGET><finish>*" || {
+  print finish widget doesn\'t invoked.
+  exit 1
+}
 
 if [[ -n "$debug" ]]; then
   print -lr - "$log" > /tmp/comptest.debug