summary refs log tree commit diff
path: root/Test/comptest
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-03-18 09:57:47 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-03-18 09:57:47 -0700
commitda57ddb7c8435c78a072c4d07672d6f68f2c6680 (patch)
tree9452181e384f6ace1a17c029f1f7890e855e9094 /Test/comptest
parent848065a5a2a383b20964ae03a6c368d19692f9c2 (diff)
downloadzsh-da57ddb7c8435c78a072c4d07672d6f68f2c6680.tar.gz
zsh-da57ddb7c8435c78a072c4d07672d6f68f2c6680.tar.xz
zsh-da57ddb7c8435c78a072c4d07672d6f68f2c6680.zip
32497: avoid using comptesteval in the middle of a series of tests
The change in control required for sourcing the command file can confuse
the simulated interactive input
Diffstat (limited to 'Test/comptest')
-rw-r--r--Test/comptest8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/comptest b/Test/comptest
index 48b6cdfea..4655f3b2b 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -102,6 +102,14 @@ zpty_flush() {
   fi
 }
 
+zpty_run() {
+  zpty -w zsh "$*"
+  zpty -r -m zsh log "*<PROMPT>*" || {
+    print "prompt hasn't appeared."
+    return 1
+  }
+}
+
 comptesteval () {
   local tmp=/tmp/comptest.$$