From e7c9e03c58f04a04c35a0e4c3721f939ba5e58c2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 13 Jan 2009 12:09:26 +0000 Subject: 26301: make zpty -r exit more cleanly on bad reads add option -m to make zpty -r return status 1 if pattern failed to match use this option in comptest --- Test/comptest | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Test/comptest') diff --git a/Test/comptest b/Test/comptest index 8a3900f5e..14938a7cd 100644 --- a/Test/comptest +++ b/Test/comptest @@ -80,7 +80,7 @@ comptesteval () { print -lr - "$@" > $tmp zpty -w zsh ". $tmp" - zpty -r zsh log_eval "**" || { + zpty -r -m zsh log_eval "**" || { print "prompt hasn't appeared." return 1 } @@ -90,7 +90,7 @@ comptesteval () { comptest () { input="$*" zpty -n -w zsh "$input"$'\C-Z' - zpty -r zsh log "***" || { + zpty -r -m zsh log "***" || { print "failed to invoke finish widget." return 1 } -- cgit 1.4.1