Lines Matching defs:err_exit

21 function err_exit
27 alias err_exit='err_exit $LINENO'
32 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
36 then err_exit cygwin detected - coprocess tests disabled - enable at the risk of wedging your system
52 [[ $line == hello ]] || err_exit 'coprocessing fails'
54 print -u5 'hello again' || err_exit 'write on u5 fails'
56 [[ $line == 'hello again' ]] || err_exit 'coprocess after moving fds fails'
82 then err_exit "$1 does not match $2"
88 *) err_exit "unknown message +|$REPLY|+" ;;
99 $file 2> /dev/null || err_exit "parent coprocess prevents script coprocess"
112 then err_exit "${SHELL-ksh} coprocess io failed -- got '$got', expected '$exp'"
120 else err_exit "coprocess hung after 'exec 5<&p 6>&p; exec 5<&- 6>&-'"
133 then err_exit "read -p hanging (SECONDS=$SECONDS count=$count)"
138 err_exit "coprocess cleanup not working correctly"
140 err_exit "subshell coprocess lingers in parent"
156 [[ $r == $e ]] || err_exit "coprocess timing bug -- expected $e, got '$r'"
168 [[ $r == $e ]] || err_exit "coprocess command substitution bug -- expected $e, got '$r'"
178 ) && err_exit 'coprocess with subshell would hang'
197 then err_exit 'traps when reading from coprocess not working'
203 trap 'sleep_pid=; kill $pid; err_exit "coprocess 1 hung"' TERM
211 [[ $REPLY == hi ]] || err_exit 'REPLY is $REPLY not hi'
217 trap 'sleep_pid=; kill $pid; err_exit "coprocess 2 hung"' TERM
222 print foo >&p 2> /dev/null || err_exit 'first write of foo to coprocess failed'
223 print foo >&p 2> /dev/null || err_exit 'second write of foo to coprocess failed'
229 trap 'sleep_pid=; kill $pid; err_exit "coprocess 3 hung"' TERM
236 read <&p || err_exit 'first read from coprocess failed'
237 [[ $REPLY == foo ]] || err_exit "first REPLY is $REPLY not foo"
238 read <&p || err_exit 'second read from coprocess failed'
239 [[ $REPLY == bar ]] || err_exit "second REPLY is $REPLY not bar"
251 [[ $got == $exp ]] || err_exit "coshell(3) identification sequence failed -- expected '$exp', got '$got'"
267 [[ $got == $exp ]] || err_exit "main coprocess main query failed -- expected $exp, got '$got'"
278 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'"
294 [[ $got == $exp ]] || err_exit "subshell coprocess main query failed -- expected $exp, got '$got'"
308 [[ $got == $exp ]] || err_exit "subshell coprocess subshell query failed -- expected $exp, got '$got'"