Lines Matching refs:coprocess
36 then err_exit cygwin detected - coprocess tests disabled - enable at the risk of wedging your system
62 print -u5 'hello again' || err_exit "write on $cat coprocess u5 fails"
64 [[ $line == 'hello again' ]] || err_exit "$cat coprocess after moving fds fails"
90 then err_exit "$cat coprocess $1 does not match $2"
96 *) err_exit "$cat coprocess unknown message +|$REPLY|+" ;;
107 $file 2> /dev/null || err_exit "parent $cat coprocess prevents script coprocess"
120 then err_exit "${SHELL-ksh} $cat coprocess io failed -- got '$got', expected '$exp'"
128 else err_exit "$cat coprocess hung after 'exec 5<&p 6>&p; exec 5<&- 6>&-'"
141 then err_exit "$cat coprocess read -p hanging (SECONDS=$SECONDS count=$count)"
146 err_exit "$cat coprocess cleanup not working correctly"
148 err_exit "subshell $cat coprocess lingers in parent"
164 [[ $r == $e ]] || err_exit "$cat coprocess timing bug -- expected $e, got '$r'"
177 [[ $r == $e ]] || err_exit "$cat coprocess command substitution bug -- expected $e, got '$r'"
187 ) && err_exit "$cat coprocess with subshell would hang"
208 then err_exit "traps when reading from $cat coprocess not working"
214 trap 'sleep_pid=; kill $pid; err_exit "$cat coprocess 1 hung"' TERM
222 [[ $REPLY == "$exp" ]] || err_exit "REPLY from $cat coprocess failed -- expected '$exp', got '$REPLY'"
228 trap 'sleep_pid=; kill $pid; err_exit "$cat coprocess 2 hung"' TERM
233 print foo >&p 2> /dev/null || err_exit "first write of foo to $cat coprocess failed"
234 print foo >&p 2> /dev/null || err_exit "second write of foo to coprocess failed"
240 trap 'sleep_pid=; kill $pid; err_exit "$cat coprocess 3 hung"' TERM
247 read <&p || err_exit "first read from $cat coprocess failed"
248 [[ $REPLY == foo ]] || err_exit "first REPLY from $cat coprocess is $REPLY not foo"
249 read <&p || err_exit "second read from $cat coprocess failed"
250 [[ $REPLY == bar ]] || err_exit "second REPLY from $cat coprocess is $REPLY not bar"
278 else got='no coprocess'
280 [[ $got == $exp ]] || err_exit "main coprocess main query failed -- expected $exp, got '$got'"
289 else got='no coprocess'
291 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'"
296 exp='no coprocess'
307 [[ $got == $exp ]] || err_exit "subshell coprocess main query failed -- expected $exp, got '$got'"
321 [[ $got == $exp ]] || err_exit "subshell coprocess subshell query failed -- expected $exp, got '$got'"
353 else got='no coprocess'
355 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'"
366 [[ $x == 0 ]] || err_exit "coprocess exitval should be 0, not $x"